From: Jason Ekstrand Date: Wed, 21 Aug 2019 16:47:55 +0000 (-0500) Subject: v3d: Use the correct opcodes for signed image min/max X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9a4793de88f4bb26cff848262190e016f473d27;p=mesa.git v3d: Use the correct opcodes for signed image min/max Reviewed-by: Eric Anholt --- 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: