intel: add resource intrinsic support for heaps

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39478>
This commit is contained in:
Lionel Landwerlin 2025-08-19 14:59:14 +03:00 committed by Marge Bot
parent 25bc517ef5
commit f309f0b1a0

View file

@ -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);