From: Dave Airlie Date: Wed, 13 Sep 2017 05:15:11 +0000 (-0700) Subject: radv/ac: bump params array for image atomic comp swap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aba441be44a2e4bb914e805c4cd064c72e4ea038;p=mesa.git radv/ac: bump params array for image atomic comp swap For the comp_swap case this was overflowing and crashing sometimes. Fixes: dEQP-VK.image.atomic_operations.compare_exchange.* Cc: "17.2" Reviewed-by: Bas Nieuwenhuizen Signed-off-by: Dave Airlie --- diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 22e915dd0dd..1388ebd998b 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -3466,7 +3466,7 @@ static void visit_image_store(struct ac_nir_context *ctx, static LLVMValueRef visit_image_atomic(struct ac_nir_context *ctx, const nir_intrinsic_instr *instr) { - LLVMValueRef params[6]; + LLVMValueRef params[7]; int param_count = 0; const nir_variable *var = instr->variables[0]->var;