dxil: Set coord_components on the txf in lower_int_sampler
authorErik Faye-Lund <kusmabite@gmail.com>
Mon, 12 Jul 2021 20:00:01 +0000 (15:00 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 23 Jul 2021 15:53:57 +0000 (15:53 +0000)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11775>

src/microsoft/compiler/dxil_nir_lower_int_samplers.c

index a020d24..4546a79 100644 (file)
@@ -264,6 +264,7 @@ create_txf_from_tex(nir_builder *b, nir_tex_instr *tex)
 
    txf = nir_tex_instr_create(b->shader, num_srcs);
    txf->op = nir_texop_txf;
+   txf->coord_components = tex->coord_components;
    txf->sampler_dim = tex->sampler_dim;
    txf->is_array = tex->is_array;
    txf->is_shadow = tex->is_shadow;