mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
ac/nir: Fix out of bounds array access.
With nir_intrinsic_ssbo_atomic_comp_swap we run out of params. Signed-off-by: Bas Nieuwenhuizen <basni@google.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d3d7cab812
commit
abc887faa1
1 changed files with 1 additions and 1 deletions
|
|
@ -1946,7 +1946,7 @@ static LLVMValueRef visit_atomic_ssbo(struct nir_to_llvm_context *ctx,
|
|||
nir_intrinsic_instr *instr)
|
||||
{
|
||||
const char *name;
|
||||
LLVMValueRef params[5];
|
||||
LLVMValueRef params[6];
|
||||
int arg_count = 0;
|
||||
if (ctx->stage == MESA_SHADER_FRAGMENT)
|
||||
ctx->shader_info->fs.writes_memory = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue