Module: Mesa Branch: main Commit: 56979182dd81c30765d0d1566ef281ac028cc500 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56979182dd81c30765d0d1566ef281ac028cc500
Author: Mike Blumenkrantz <[email protected]> Date: Wed May 11 10:05:03 2022 -0400 zink: set sparse flag in cubemap lowering Fixes: 2d745904ca7 ("zink: add a gently mangled version of the d3d12 cubemap -> array compiler pass") Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16456> --- src/gallium/drivers/zink/zink_lower_cubemap_to_array.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_lower_cubemap_to_array.c b/src/gallium/drivers/zink/zink_lower_cubemap_to_array.c index 73c80ab4d9e..a9c2754df38 100644 --- a/src/gallium/drivers/zink/zink_lower_cubemap_to_array.c +++ b/src/gallium/drivers/zink/zink_lower_cubemap_to_array.c @@ -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;
