diff options
author | Vasily Khoruzhick <[email protected]> | 2020-01-22 20:30:31 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-23 21:16:22 +0000 |
commit | beab31b9bb58913ea8abf61765d7788f5cb2f04e (patch) | |
tree | 8b42f81de6c1de5ebcb91ce5ef84a8a412c5694e /src/gallium/drivers | |
parent | 3c754900b5f689b821cbb1162b821ce12bcaf23e (diff) |
lima: use imul for calculations with intrinsic src
It's source is supposed to be int, so we have to use integer
multiplication otherwise we'll get undefined result.
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Erico Nunes <[email protected]>
Signed-off-by: Vasily Khoruzhick <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3529>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3529>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/lima/ir/lima_nir_lower_uniform_to_scalar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/ir/lima_nir_lower_uniform_to_scalar.c b/src/gallium/drivers/lima/ir/lima_nir_lower_uniform_to_scalar.c index 3b110370277..d77386bf020 100644 --- a/src/gallium/drivers/lima/ir/lima_nir_lower_uniform_to_scalar.c +++ b/src/gallium/drivers/lima/ir/lima_nir_lower_uniform_to_scalar.c @@ -44,7 +44,7 @@ lower_load_uniform_to_scalar(nir_builder *b, nir_intrinsic_instr *intr) nir_intrinsic_set_type(chan_intr, nir_intrinsic_type(intr)); chan_intr->src[0] = - nir_src_for_ssa(nir_fmul_imm(b, intr->src[0].ssa, 4)); + nir_src_for_ssa(nir_imul_imm(b, intr->src[0].ssa, 4)); nir_builder_instr_insert(b, &chan_intr->instr); |