mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 08:13:05 +00:00
shader: write preserved SDWA fields with one bit-field insert and drop duplicate 16-bit masks
This commit is contained in:
1 parent
10a852c2ac
commit
aacf15fd0b
4 files changed
+15
-16
No files matched your search
@@ -89,7 +89,7 @@ void Translator::V_CVT_16_F16(const Decoder::Instruction& inst, bool signed_valu
|
||||
if (signed_value) {
|
||||
const auto converted =
|
||||
ConvertF32ToI32Saturated(value, -32768.0f, 32768.0f, 32767.0f, 0xffff8000u, 0x7fffu);
|
||||
Write16Bits(DestinationOperand(inst), ir.BitwiseAnd(converted, IR::U32(IR::Value(0xffffu))));
|
||||
Write16Bits(DestinationOperand(inst), converted);
|
||||
return;
|
||||
}
|
||||
Write16Bits(DestinationOperand(inst),
|
||||
|
||||
Reference in new issue
Block a user