diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-05 20:13:14 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-09 23:15:45 +0200 |
commit | f2549739d1166d9177bfff3a6af150266ba5309f (patch) | |
tree | 606e744b19db98c940b9cde236ad062afb678bb1 /src/video_core/shader/shader_ir.h | |
parent | shader_ir: limit explorastion to best known program size. (diff) | |
download | yuzu-f2549739d1166d9177bfff3a6af150266ba5309f.tar yuzu-f2549739d1166d9177bfff3a6af150266ba5309f.tar.gz yuzu-f2549739d1166d9177bfff3a6af150266ba5309f.tar.bz2 yuzu-f2549739d1166d9177bfff3a6af150266ba5309f.tar.lz yuzu-f2549739d1166d9177bfff3a6af150266ba5309f.tar.xz yuzu-f2549739d1166d9177bfff3a6af150266ba5309f.tar.zst yuzu-f2549739d1166d9177bfff3a6af150266ba5309f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index 928ac7cb5..6145f0a70 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -127,6 +127,10 @@ public: return disable_flow_stack; } + u32 ConvertAddressToNvidiaSpace(const u32 address) const { + return (address - main_offset) * sizeof(Tegra::Shader::Instruction); + } + private: void Decode(); |