mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
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:
parent
546edfde83
commit
89f727b1bd
1 changed files with 4 additions and 4 deletions
|
|
@ -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}"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue