diff options
author | Dave Airlie <[email protected]> | 2017-09-12 22:15:11 -0700 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-09-13 17:17:02 +1000 |
commit | aba441be44a2e4bb914e805c4cd064c72e4ea038 (patch) | |
tree | 8591c7a1d36fcb5b57bdc2c17ae40f6c018a7b85 /src/amd | |
parent | ebd2a5354df64ef504f1e213afd2d6ab9d69a776 (diff) |
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" <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |