Mesa (main): dxil: Set coord_components on the txf in lower_int_sampler

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 23 16:25:51 UTC 2021


Module: Mesa
Branch: main
Commit: e212a191a671aa1a64343eafceb99d81bd1d624d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e212a191a671aa1a64343eafceb99d81bd1d624d

Author: Erik Faye-Lund <kusmabite at gmail.com>
Date:   Mon Jul 12 15:00:01 2021 -0500

dxil: Set coord_components on the txf in lower_int_sampler

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11775>

---

 src/microsoft/compiler/dxil_nir_lower_int_samplers.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/microsoft/compiler/dxil_nir_lower_int_samplers.c b/src/microsoft/compiler/dxil_nir_lower_int_samplers.c
index a020d243b77..4546a79a1cf 100644
--- a/src/microsoft/compiler/dxil_nir_lower_int_samplers.c
+++ b/src/microsoft/compiler/dxil_nir_lower_int_samplers.c
@@ -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;



More information about the mesa-commit mailing list