v3d: Use the correct opcodes for signed image min/max
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 21 Aug 2019 16:47:55 +0000 (11:47 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 21 Aug 2019 17:19:55 +0000 (17:19 +0000)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/broadcom/compiler/v3d40_tex.c

index 9ee1692a77ce43d08338c59ed39bd7a041070aaa..9ee7df214212b4a8ebc3763d9d2c3b313058ba38 100644 (file)
@@ -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: