nak/sm50: remove *fmod* calls from iabs

I see no mention of NOT and ABS in codegen's encoding for I2I

Also, this is an integer instruction, so calling into the float
helpers seem wrong.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26114>
This commit is contained in:
Daniel Almeida 2023-11-27 12:52:40 -03:00 committed by Marge Bot
parent 546edfde83
commit 89f727b1bd

View file

@ -1496,15 +1496,15 @@ impl SM50Instr {
match &op.src.src_ref {
SrcRef::Imm32(imm32) => {
self.set_opcode(0x38e0);
self.set_src_imm_f20(20..40, 56, *imm32);
self.set_src_imm_i20(20..40, 56, *imm32);
}
SrcRef::Zero | SrcRef::Reg(_) => {
self.set_opcode(0x5ce0);
self.set_reg_fmod_src(20..28, 45, 49, op.src);
self.set_reg_src(20..28, op.src);
}
SrcRef::CBuf(_) => {
SrcRef::CBuf(cbuf) => {
self.set_opcode(0x4ce0);
self.set_cb_fmod_src(20..39, 45, 49, op.src);
self.set_src_cb(20..39, cbuf);
}
src => panic!("Unsupported src type for IABS: {src}"),
}