summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_ir.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-09-23 21:40:58 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-10-25 15:01:29 +0200
commitacd64411342e70bd7e9f7156f62c3b1a609ac3c4 (patch)
treec05f05bb52fdee4fb0c693c98dec5915b69b302d /src/video_core/shader/shader_ir.h
parentVideoCore: Unify const buffer accessing along engines and provide ConstBufferLocker class to shaders. (diff)
downloadyuzu-acd64411342e70bd7e9f7156f62c3b1a609ac3c4.tar
yuzu-acd64411342e70bd7e9f7156f62c3b1a609ac3c4.tar.gz
yuzu-acd64411342e70bd7e9f7156f62c3b1a609ac3c4.tar.bz2
yuzu-acd64411342e70bd7e9f7156f62c3b1a609ac3c4.tar.lz
yuzu-acd64411342e70bd7e9f7156f62c3b1a609ac3c4.tar.xz
yuzu-acd64411342e70bd7e9f7156f62c3b1a609ac3c4.tar.zst
yuzu-acd64411342e70bd7e9f7156f62c3b1a609ac3c4.zip
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r--src/video_core/shader/shader_ir.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h
index 68818643c..e3b568d3e 100644
--- a/src/video_core/shader/shader_ir.h
+++ b/src/video_core/shader/shader_ir.h
@@ -68,7 +68,7 @@ struct GlobalMemoryUsage {
class ShaderIR final {
public:
explicit ShaderIR(const ProgramCode& program_code, u32 main_offset, std::size_t size,
- CompilerSettings settings);
+ CompilerSettings settings, ConstBufferLocker& locker);
~ShaderIR();
const std::map<u32, NodeBlock>& GetBasicBlocks() const {
@@ -389,6 +389,7 @@ private:
NodeBlock global_code;
ASTManager program_manager;
CompilerSettings settings{};
+ ConstBufferLocker& locker;
std::set<u32> used_registers;
std::set<Tegra::Shader::Pred> used_predicates;