Skip to content
Snippets Groups Projects
Unverified Commit 3d0f3573 authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

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.
parent 632c9e4e
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,8 @@ u32 ShaderIR::DecodeHalfSetPredicate(NodeBlock& bb, u32 pc) {
h_and = instr.hsetp2.cbuf_and_imm.h_and;
op_b = GetOperandAbsNegHalf(GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset()),
instr.hsetp2.cbuf.abs_b, instr.hsetp2.cbuf.negate_b);
// F32 is hardcoded in hardware
op_b = UnpackHalfFloat(std::move(op_b), Tegra::Shader::HalfType::F32);
break;
case OpCode::Id::HSETP2_IMM:
cond = instr.hsetp2.cbuf_and_imm.cond;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment