summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-10-07 14:49:47 -0300
committerGravatar ReinUsesLisp2019-10-07 14:49:47 -0300
commit3d0f35730734598651dc4cac830fff5158e53635 (patch)
tree98423bf6143a7e886c499160de694b71913b0da7
parentshader/half_set_predicate: Reduce DEBUG_ASSERT to LOG_DEBUG (diff)
downloadyuzu-3d0f35730734598651dc4cac830fff5158e53635.tar.gz
yuzu-3d0f35730734598651dc4cac830fff5158e53635.tar.xz
yuzu-3d0f35730734598651dc4cac830fff5158e53635.zip
shader/half_set_predicate: Fix HSETP2 for constant buffers
HSETP2 when used with a constant buffer parses the second operand type as F32. This is not configurable.
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/decode/half_set_predicate.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/half_set_predicate.cpp b/src/video_core/shader/decode/half_set_predicate.cpp
index 26d267b4c..fec8f2dbe 100644
--- a/src/video_core/shader/decode/half_set_predicate.cpp
+++ b/src/video_core/shader/decode/half_set_predicate.cpp
@@ -33,6 +33,8 @@ u32 ShaderIR::DecodeHalfSetPredicate(NodeBlock& bb, u32 pc) {
33 h_and = instr.hsetp2.cbuf_and_imm.h_and; 33 h_and = instr.hsetp2.cbuf_and_imm.h_and;
34 op_b = GetOperandAbsNegHalf(GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset()), 34 op_b = GetOperandAbsNegHalf(GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset()),
35 instr.hsetp2.cbuf.abs_b, instr.hsetp2.cbuf.negate_b); 35 instr.hsetp2.cbuf.abs_b, instr.hsetp2.cbuf.negate_b);
36 // F32 is hardcoded in hardware
37 op_b = UnpackHalfFloat(std::move(op_b), Tegra::Shader::HalfType::F32);
36 break; 38 break;
37 case OpCode::Id::HSETP2_IMM: 39 case OpCode::Id::HSETP2_IMM:
38 cond = instr.hsetp2.cbuf_and_imm.cond; 40 cond = instr.hsetp2.cbuf_and_imm.cond;