diff options
author | Jannik Vogel <email@jannikvogel.de> | 2016-05-13 08:46:14 +0200 |
---|---|---|
committer | Jannik Vogel <email@jannikvogel.de> | 2016-05-13 09:20:14 +0200 |
commit | 4e01e9ffc54ddfc9a1a5b285b4434e2f3ac4854e (patch) | |
tree | 5c7873636fe7317c6c4489292c48a2a8f7f41595 /src/video_core/shader/shader_jit_x64.h | |
parent | Merge pull request #1695 from Subv/tls_alloc (diff) | |
download | yuzu-4e01e9ffc54ddfc9a1a5b285b4434e2f3ac4854e.tar yuzu-4e01e9ffc54ddfc9a1a5b285b4434e2f3ac4854e.tar.gz yuzu-4e01e9ffc54ddfc9a1a5b285b4434e2f3ac4854e.tar.bz2 yuzu-4e01e9ffc54ddfc9a1a5b285b4434e2f3ac4854e.tar.lz yuzu-4e01e9ffc54ddfc9a1a5b285b4434e2f3ac4854e.tar.xz yuzu-4e01e9ffc54ddfc9a1a5b285b4434e2f3ac4854e.tar.zst yuzu-4e01e9ffc54ddfc9a1a5b285b4434e2f3ac4854e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader_jit_x64.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader/shader_jit_x64.h b/src/video_core/shader/shader_jit_x64.h index 30aa7ff30..5468459d4 100644 --- a/src/video_core/shader/shader_jit_x64.h +++ b/src/video_core/shader/shader_jit_x64.h @@ -36,8 +36,8 @@ class JitShader : public Gen::XCodeBlock { public: JitShader(); - void Run(void* registers, unsigned offset) const { - program(registers, code_ptr[offset]); + void Run(const ShaderSetup& setup, UnitState<false>& state, unsigned offset) const { + program(&setup, &state, code_ptr[offset]); } void Compile(); @@ -117,7 +117,7 @@ private: /// Branches that need to be fixed up once the entire shader program is compiled std::vector<std::pair<Gen::FixupBranch, unsigned>> fixup_branches; - using CompiledShader = void(void* registers, const u8* start_addr); + using CompiledShader = void(const void* setup, void* state, const u8* start_addr); CompiledShader* program = nullptr; }; |