Browse Source

fix shit

pull/3324/head
lizzie 3 weeks ago
parent
commit
cc326927e9
  1. 2
      src/audio_core/adsp/adsp.h
  2. 8
      src/video_core/macro.cpp

2
src/audio_core/adsp/adsp.h

@ -6,6 +6,8 @@
#pragma once #pragma once
#include <optional>
#include "audio_core/adsp/apps/audio_renderer/audio_renderer.h" #include "audio_core/adsp/apps/audio_renderer/audio_renderer.h"
#include "audio_core/adsp/apps/opus/opus_decoder.h" #include "audio_core/adsp/apps/opus/opus_decoder.h"
#include "common/common_types.h" #include "common/common_types.h"

8
src/video_core/macro.cpp

@ -1640,9 +1640,11 @@ void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) {
} }
std::unique_ptr<CachedMacro> MacroEngine::Compile(const std::vector<u32>& code) { std::unique_ptr<CachedMacro> MacroEngine::Compile(const std::vector<u32>& code) {
if (is_interpreted)
return std::make_unique<MacroInterpreterImpl>(maxwell3d, code);
return std::make_unique<MacroJITx64Impl>(maxwell3d, code);
#ifdef ARCHITECTURE_x86_64
if (!is_interpreted)
return std::make_unique<MacroJITx64Impl>(maxwell3d, code);
#endif
return std::make_unique<MacroInterpreterImpl>(maxwell3d, code);
} }
std::optional<MacroEngine> GetMacroEngine(Engines::Maxwell3D& maxwell3d) { std::optional<MacroEngine> GetMacroEngine(Engines::Maxwell3D& maxwell3d) {

Loading…
Cancel
Save