Commit ad864a7c authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

nir/lower_tex: Copy more fields in lower_tex_to_txd and friends

Fixes NIR validation errors for OpenMW on Panfrost.

Fixes: 1f97819f

 ("panfrost: Emulate GL_CLAMP on Bifrost")
Reviewed-by: Mike Blumenkrantz's avatarMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <!15939>
parent 81515f6b
Pipeline #579909 waiting for manual action with stages
......@@ -767,6 +767,9 @@ lower_tex_to_txd(nir_builder *b, nir_tex_instr *tex)
txd->coord_components = tex->coord_components;
txd->texture_index = tex->texture_index;
txd->sampler_index = tex->sampler_index;
txd->is_array = tex->is_array;
txd->is_shadow = tex->is_shadow;
txd->is_new_style_shadow = tex->is_new_style_shadow;
/* reuse existing srcs */
for (unsigned i = 0; i < tex->num_srcs; i++) {
......@@ -803,6 +806,9 @@ lower_txb_to_txl(nir_builder *b, nir_tex_instr *tex)
txl->coord_components = tex->coord_components;
txl->texture_index = tex->texture_index;
txl->sampler_index = tex->sampler_index;
txl->is_array = tex->is_array;
txl->is_shadow = tex->is_shadow;
txl->is_new_style_shadow = tex->is_new_style_shadow;
/* reuse all but bias src */
for (int i = 0; i < 2; i++) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment