summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-01 05:22:21 +0200
committerbunnei <bunneidev@gmail.com>2018-06-01 05:36:45 +0200
commit888eb345c0d06c58da40afa5619fe6a0da10ffa5 (patch)
tree7a736b1976d2248c5f620686a70fdc3d6aff310d /src/video_core/engines
parentgl_shader_decompiler: Support multi-destination for TEXS. (diff)
downloadyuzu-888eb345c0d06c58da40afa5619fe6a0da10ffa5.tar
yuzu-888eb345c0d06c58da40afa5619fe6a0da10ffa5.tar.gz
yuzu-888eb345c0d06c58da40afa5619fe6a0da10ffa5.tar.bz2
yuzu-888eb345c0d06c58da40afa5619fe6a0da10ffa5.tar.lz
yuzu-888eb345c0d06c58da40afa5619fe6a0da10ffa5.tar.xz
yuzu-888eb345c0d06c58da40afa5619fe6a0da10ffa5.tar.zst
yuzu-888eb345c0d06c58da40afa5619fe6a0da10ffa5.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 79adcc535..4ed918a76 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -262,6 +262,14 @@ union Instruction {
} conversion;
union {
+ BitField<31, 4, u64> component_mask;
+
+ bool IsComponentEnabled(size_t component) const {
+ return ((1 << component) & component_mask) != 0;
+ }
+ } tex;
+
+ union {
// TODO(bunnei): This is just a guess, needs to be verified
BitField<52, 1, u64> enable_g_component;
} texs;
@@ -286,6 +294,7 @@ public:
KIL,
LD_A,
ST_A,
+ TEX,
TEXQ, // Texture Query
TEXS, // Texture Fetch with scalar/non-vec4 source/destinations
TLDS, // Texture Load with scalar/non-vec4 source/destinations
@@ -447,6 +456,7 @@ private:
INST("111000110011----", Id::KIL, Type::Flow, "KIL"),
INST("1110111111011---", Id::LD_A, Type::Memory, "LD_A"),
INST("1110111111110---", Id::ST_A, Type::Memory, "ST_A"),
+ INST("1100000000111---", Id::TEX, Type::Memory, "TEX"),
INST("1101111101001---", Id::TEXQ, Type::Memory, "TEXQ"),
INST("1101100---------", Id::TEXS, Type::Memory, "TEXS"),
INST("1101101---------", Id::TLDS, Type::Memory, "TLDS"),