From f309f0b1a09755ae13b93ffe9c9fdb0d35ab9a23 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 19 Aug 2025 14:59:14 +0300 Subject: [PATCH] intel: add resource intrinsic support for heaps Signed-off-by: Lionel Landwerlin Acked-by: Alyssa Rosenzweig Part-of: --- .../intel_nir_lower_non_uniform_resource_intel.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/intel_nir_lower_non_uniform_resource_intel.c b/src/intel/compiler/intel_nir_lower_non_uniform_resource_intel.c index b174706b85a..302c0cfc821 100644 --- a/src/intel/compiler/intel_nir_lower_non_uniform_resource_intel.c +++ b/src/intel/compiler/intel_nir_lower_non_uniform_resource_intel.c @@ -128,8 +128,13 @@ intel_nir_lower_non_uniform_tex(nir_builder *b, bool progress = false; for (unsigned s = 0; s < tex->num_srcs; s++) { - if (tex->src[s].src_type != nir_tex_src_texture_handle && - tex->src[s].src_type != nir_tex_src_sampler_handle) + const bool needs_lowering = + tex->src[s].src_type == nir_tex_src_texture_handle || + tex->src[s].src_type == nir_tex_src_sampler_handle || + tex->src[s].src_type == nir_tex_src_texture_heap_offset || + tex->src[s].src_type == nir_tex_src_sampler_heap_offset; + + if (!needs_lowering) continue; util_dynarray_clear(inst_array);