Răsfoiți Sursa

half_set_predicate: Fix HSETP2_C constant buffer offset

ReinUsesLisp 7 ani în urmă
părinte
comite
ec0da3ef64
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/video_core/shader/decode/half_set_predicate.cpp

+ 1 - 1
src/video_core/shader/decode/half_set_predicate.cpp

@@ -30,7 +30,7 @@ u32 ShaderIR::DecodeHalfSetPredicate(NodeBlock& bb, u32 pc) {
     case OpCode::Id::HSETP2_C:
         cond = instr.hsetp2.cbuf_and_imm.cond;
         h_and = instr.hsetp2.cbuf_and_imm.h_and;
-        op_b = GetOperandAbsNegHalf(GetConstBuffer(instr.cbuf34.index, instr.cbuf34.offset),
+        op_b = GetOperandAbsNegHalf(GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset()),
                                     instr.hsetp2.cbuf.abs_b, instr.hsetp2.cbuf.negate_b);
         break;
     case OpCode::Id::HSETP2_IMM: