Browse Source
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.
pull/15/merge
ReinUsesLisp
6 years ago
No known key found for this signature in database
GPG Key ID: 2DFC508897B39CFE
1 changed files with
2 additions and
0 deletions
-
src/video_core/shader/decode/half_set_predicate.cpp
|
|
@ -33,6 +33,8 @@ u32 ShaderIR::DecodeHalfSetPredicate(NodeBlock& bb, u32 pc) { |
|
|
h_and = instr.hsetp2.cbuf_and_imm.h_and; |
|
|
h_and = instr.hsetp2.cbuf_and_imm.h_and; |
|
|
op_b = GetOperandAbsNegHalf(GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset()), |
|
|
op_b = GetOperandAbsNegHalf(GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset()), |
|
|
instr.hsetp2.cbuf.abs_b, instr.hsetp2.cbuf.negate_b); |
|
|
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; |
|
|
break; |
|
|
case OpCode::Id::HSETP2_IMM: |
|
|
case OpCode::Id::HSETP2_IMM: |
|
|
cond = instr.hsetp2.cbuf_and_imm.cond; |
|
|
cond = instr.hsetp2.cbuf_and_imm.cond; |
|
|
|