diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-08-02 12:40:17 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-08-02 21:21:55 +0200 |
commit | 72e7b7a00b660240bed1029841ffbdaeedfaccfe (patch) | |
tree | 204849cf5daa166cde5bd2ceb373334f80767cfc /src/gallium | |
parent | 74baeacafc7c2e9bae0f4db9651b0c664d33f5ac (diff) |
ac/nir,radv: Optimize bounds check for 64 bit CAS.
When the application does not ask for robust buffer access.
Only implemented the check in radv.
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_nir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 20031ad3f60..56d35e533e5 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -1248,6 +1248,7 @@ bool si_nir_build_llvm(struct si_shader_context *ctx, struct nir_shader *nir) ctx->abi.inputs = &ctx->inputs[0]; ctx->abi.load_sampler_desc = si_nir_load_sampler_desc; ctx->abi.clamp_shadow_reference = true; + ctx->abi.robust_buffer_access = true; ctx->num_samplers = util_last_bit(info->samplers_declared); ctx->num_images = util_last_bit(info->images_declared); |