aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines/shader_bytecode.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-04 20:22:32 -0500
committerGitHub <noreply@github.com>2019-02-04 20:22:32 -0500
commitbb4549a73d207637a1407cffe662fa58ee58d594 (patch)
tree15eab5ac226a0fd6db21b96ecbcc79ef0b1461c4 /src/video_core/engines/shader_bytecode.h
parenteceab45dac2b67392a896fa322af15e6aa81c242 (diff)
parenta568cd805b528f3e8c5a2ae89073af106c489b01 (diff)
Merge pull request #2082 from FernandoS27/txq-stl
Fix TXQ not using the component mask.
Diffstat (limited to 'src/video_core/engines/shader_bytecode.h')
-rw-r--r--src/video_core/engines/shader_bytecode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 713b01c9f..8e915e2ae 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -981,6 +981,10 @@ union Instruction {
}
return false;
}
+
+ bool IsComponentEnabled(std::size_t component) const {
+ return ((1ULL << component) & component_mask) != 0;
+ }
} txq;
union {