diff options
author | Samuel Pitoiset <[email protected]> | 2018-02-20 11:11:42 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-02-21 09:41:49 +0100 |
commit | ff83dfb364e2fce7160695579e65e06fcd2164f1 (patch) | |
tree | 49ca5ab92735c66cafa5d54a86b413995f882e17 /src/amd | |
parent | afa7b2f19975f45234637f47859fdd768551a080 (diff) |
ac/nir: set the DA field when performing atomics on 3D images
This doesn't fix anything known but it should definitely be set.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 351e6fa9efc..52ec40fb127 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -3773,7 +3773,8 @@ static LLVMValueRef visit_image_atomic(struct ac_nir_context *ctx, char coords_type[8]; bool da = glsl_sampler_type_is_array(type) || - glsl_get_sampler_dim(type) == GLSL_SAMPLER_DIM_CUBE; + glsl_get_sampler_dim(type) == GLSL_SAMPLER_DIM_CUBE || + glsl_get_sampler_dim(type) == GLSL_SAMPLER_DIM_3D; LLVMValueRef coords = params[param_count++] = get_image_coords(ctx, instr); params[param_count++] = get_sampler_desc(ctx, instr->variables[0], AC_DESC_IMAGE, |