From 04ba4059b7243fb9258df12154ce1e7a01e019c8 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 18 Aug 2023 12:52:40 -0400 Subject: [PATCH] nir/lower_helper_writes: Consider bindless images These need to be handled like other image ops. Fixes KHR-GLES31.core.shader_image_load_store.basic-allTargets-atomicFS on Asahi with bindless image access forced. Fixes: 586da7b3290 ("nir: Add nir_lower_helper_writes pass") Signed-off-by: Alyssa Rosenzweig Reviewed-by: Italo Nicola Reviewed-by: Faith Ekstrand Part-of: --- src/compiler/nir/nir_lower_helper_writes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir_lower_helper_writes.c b/src/compiler/nir/nir_lower_helper_writes.c index 3920ce8..fa4aed8 100644 --- a/src/compiler/nir/nir_lower_helper_writes.c +++ b/src/compiler/nir/nir_lower_helper_writes.c @@ -39,9 +39,12 @@ lower(nir_builder *b, nir_instr *instr, void *data) case nir_intrinsic_global_atomic_swap: case nir_intrinsic_image_atomic: case nir_intrinsic_image_atomic_swap: + case nir_intrinsic_bindless_image_atomic: + case nir_intrinsic_bindless_image_atomic_swap: break; case nir_intrinsic_store_global: case nir_intrinsic_image_store: + case nir_intrinsic_bindless_image_store: if (!(*lower_plain_stores)) return false; else -- 2.7.4