From ac726ae5a937af3bd36f154fade91bf7ad393431 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 19 Apr 2024 22:57:13 -0400 Subject: [PATCH] asahi: mark eMRT loads as in-bounds for layer clamping purposes. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/agx_nir_lower_tilebuffer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/asahi/lib/agx_nir_lower_tilebuffer.c b/src/asahi/lib/agx_nir_lower_tilebuffer.c index 2737d3ebabd..b2d604f2f48 100644 --- a/src/asahi/lib/agx_nir_lower_tilebuffer.c +++ b/src/asahi/lib/agx_nir_lower_tilebuffer.c @@ -215,13 +215,13 @@ load_memory(nir_builder *b, unsigned bindless_base, unsigned nr_samples, nir_begin_invocation_interlock(b); if (bindless) { - return nir_bindless_image_load(b, comps, bit_size, image, coords, sample, - lod, .image_dim = dim, .image_array = true, - .format = format); + return nir_bindless_image_load( + b, comps, bit_size, image, coords, sample, lod, .image_dim = dim, + .image_array = true, .format = format, .access = ACCESS_IN_BOUNDS_AGX); } else { return nir_image_load(b, comps, bit_size, image, coords, sample, lod, .image_dim = dim, .image_array = true, - .format = format); + .format = format, .access = ACCESS_IN_BOUNDS_AGX); } }