summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-07-03 15:32:29 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-07-05 12:34:00 +0200
commitb3c0c7d0d786a40f08491028020fd8ab4a5ab49c (patch)
treeed30d1e943a5965ccadb812ed36b7bdbfa222543
parent49a96d4cf715eacc2a0f828f02e45574b73ed775 (diff)
radeonsi/nir: lower txp instructions
-rw-r--r--src/gallium/drivers/radeonsi/si_shader_nir.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c
index 83c7ab11fe..10b3630e86 100644
--- a/src/gallium/drivers/radeonsi/si_shader_nir.c
+++ b/src/gallium/drivers/radeonsi/si_shader_nir.c
@@ -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;