zink: set sparse flag in cubemap lowering

Fixes: 2d745904ca ("zink: add a gently mangled version of the d3d12 cubemap -> array compiler pass")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16456>
This commit is contained in:
Mike Blumenkrantz 2022-05-11 10:05:03 -04:00 committed by Marge Bot
parent 377f5e7af9
commit 56979182dd

View file

@ -151,6 +151,7 @@ create_array_tex_from_cube_tex(nir_builder *b, nir_tex_instr *tex, nir_ssa_def *
array_tex->sampler_dim = GLSL_SAMPLER_DIM_2D;
array_tex->is_array = true;
array_tex->is_shadow = tex->is_shadow;
array_tex->is_sparse = tex->is_sparse;
array_tex->is_new_style_shadow = tex->is_new_style_shadow;
array_tex->texture_index = tex->texture_index;
array_tex->sampler_index = tex->sampler_index;
@ -422,6 +423,7 @@ lower_tex_to_txl(nir_builder *b, nir_tex_instr *tex)
txl->sampler_index = tex->sampler_index;
txl->is_array = tex->is_array;
txl->is_shadow = tex->is_shadow;
txl->is_sparse = tex->is_sparse;
txl->is_new_style_shadow = tex->is_new_style_shadow;
unsigned s = 0;