radeonsi/nir: lower txp instructions
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 3 Jul 2017 13:32:29 +0000 (15:32 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 12:55:44 +0000 (14:55 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c

index d87f6b8..31da3a5 100644 (file)
@@ -350,6 +350,11 @@ si_lower_nir(struct si_shader_selector* sel)
        NIR_PASS_V(sel->nir, nir_lower_alu_to_scalar);
        NIR_PASS_V(sel->nir, nir_lower_phis_to_scalar);
 
+       static const struct nir_lower_tex_options lower_tex_options = {
+               .lower_txp = ~0u,
+       };
+       NIR_PASS_V(sel->nir, nir_lower_tex, &lower_tex_options);
+
        bool progress;
        do {
                progress = false;