diff options
author | Nicolai Hähnle <[email protected]> | 2017-07-03 15:32:29 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-07-31 14:55:44 +0200 |
commit | d5741489d3149c4a319df590872ee40c094ecf91 (patch) | |
tree | 49db1a75d4754788b2f7be8c225a779aa31d3c1e /src/gallium | |
parent | bcf85fcd9a262fdb5115abf1df98830e5fb5eda8 (diff) |
radeonsi/nir: lower txp instructions
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_nir.c | 5 |
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 d87f6b831d8..31da3a560fd 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; |