mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 00:42:48 +00:00
shader_recompiler: Fix immediate type in S_FF1_I32_B32
This commit is contained in:
parent
8ee8cd6164
commit
5c9ae13097
@ -604,7 +604,7 @@ void Translator::S_FF1_I32_B32(const GcnInst& inst) {
|
|||||||
void Translator::S_FF1_I32_B64(const GcnInst& inst) {
|
void Translator::S_FF1_I32_B64(const GcnInst& inst) {
|
||||||
const IR::U64 src0{GetSrc64(inst.src[0])};
|
const IR::U64 src0{GetSrc64(inst.src[0])};
|
||||||
const IR::U32 result{
|
const IR::U32 result{
|
||||||
ir.Select(ir.IEqual(src0, ir.Imm64(u64(0))), ir.Imm64(s64(-1)), ir.FindILsb(src0))};
|
ir.Select(ir.IEqual(src0, ir.Imm64(u64(0))), ir.Imm32(-1), ir.FindILsb(src0))};
|
||||||
SetDst(inst.dst[0], result);
|
SetDst(inst.dst[0], result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user