mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
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:
parent
226316116c
commit
6f729a7c9d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue