aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-08-21 11:47:55 -0500
committerJason Ekstrand <[email protected]>2019-08-21 17:19:55 +0000
commitc9a4793de88f4bb26cff848262190e016f473d27 (patch)
treed46c2b9a3e76b31206cc877393ec53d74028b980
parent021fa28163a1a8a3bda83a615d20930d2b35c651 (diff)
v3d: Use the correct opcodes for signed image min/max
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/broadcom/compiler/v3d40_tex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/broadcom/compiler/v3d40_tex.c b/src/broadcom/compiler/v3d40_tex.c
index 9ee1692a77c..9ee7df21421 100644
--- a/src/broadcom/compiler/v3d40_tex.c
+++ b/src/broadcom/compiler/v3d40_tex.c
@@ -253,9 +253,11 @@ v3d40_image_load_store_tmu_op(nir_intrinsic_instr *instr)
case nir_intrinsic_image_deref_atomic_add:
return v3d_get_op_for_atomic_add(instr, 3);
case nir_intrinsic_image_deref_atomic_imin:
+ return V3D_TMU_OP_WRITE_SMIN;
case nir_intrinsic_image_deref_atomic_umin:
return V3D_TMU_OP_WRITE_UMIN_FULL_L1_CLEAR;
case nir_intrinsic_image_deref_atomic_imax:
+ return V3D_TMU_OP_WRITE_SMAX;
case nir_intrinsic_image_deref_atomic_umax:
return V3D_TMU_OP_WRITE_UMAX;
case nir_intrinsic_image_deref_atomic_and: