summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-04-30 20:11:41 -0300
committerGravatar ReinUsesLisp2019-05-02 21:46:25 -0300
commit28bffb1ffa2585429d63c6dab8584b8e46179696 (patch)
tree9b52bc708130382ca1525c661c60ee401835c24c /src
parentshader: Add physical attributes commentaries (diff)
downloadyuzu-28bffb1ffa2585429d63c6dab8584b8e46179696.tar.gz
yuzu-28bffb1ffa2585429d63c6dab8584b8e46179696.tar.xz
yuzu-28bffb1ffa2585429d63c6dab8584b8e46179696.zip
shader_ir/memory: Assert on non-32 bits ALD.PHYS
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode/memory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/memory.cpp b/src/video_core/shader/decode/memory.cpp
index c4f68f8ab..6a992c543 100644
--- a/src/video_core/shader/decode/memory.cpp
+++ b/src/video_core/shader/decode/memory.cpp
@@ -49,6 +49,9 @@ u32 ShaderIR::DecodeMemory(NodeBlock& bb, u32 pc) {
49 "Indirect attribute loads are not supported"); 49 "Indirect attribute loads are not supported");
50 UNIMPLEMENTED_IF_MSG((instr.attribute.fmt20.immediate.Value() % sizeof(u32)) != 0, 50 UNIMPLEMENTED_IF_MSG((instr.attribute.fmt20.immediate.Value() % sizeof(u32)) != 0,
51 "Unaligned attribute loads are not supported"); 51 "Unaligned attribute loads are not supported");
52 UNIMPLEMENTED_IF_MSG(instr.attribute.fmt20.IsPhysical() &&
53 instr.attribute.fmt20.size != Tegra::Shader::AttributeSize::Word,
54 "Non-32 bits PHYS reads are not implemented");
52 55
53 const Node buffer{GetRegister(instr.gpr39)}; 56 const Node buffer{GetRegister(instr.gpr39)};
54 57