mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
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:
parent
25bc517ef5
commit
f309f0b1a0
1 changed files with 7 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue