microsoft/clc: Only apply float scaling to 32bit fdiv

Reviewed By: Bill Kristiansen <billkris@microsoft.com>

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9091>
This commit is contained in:
Jesse Natalie 2021-02-16 15:49:59 -08:00 committed by Marge Bot
parent 226316116c
commit 6f729a7c9d

View file

@ -976,7 +976,7 @@ scale_fdiv(nir_shader *nir)
if (instr->type != nir_instr_type_alu)
continue;
nir_alu_instr *alu = nir_instr_as_alu(instr);
if (alu->op != nir_op_fdiv)
if (alu->op != nir_op_fdiv || alu->src[0].src.ssa->bit_size != 32)
continue;
b.cursor = nir_before_instr(instr);