aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/ir3/ir3_nir.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-03-19 13:55:21 -0500
committerKarol Herbst <[email protected]>2019-03-21 02:58:41 +0000
commit08f804ec0c2a4d367787adc4ea7a613170b98e73 (patch)
treee743a58e068c03508e4dda73bb60efc8967fbee2 /src/freedreno/ir3/ir3_nir.c
parentd8a0658d8ba80d56c5c7f487b24f0ecaa85c1e34 (diff)
anv,radv,turnip: Lower TG4 offsets with nir_lower_tex
v2: turn on for turnip as well (Karol Herbst) Reviewed-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/freedreno/ir3/ir3_nir.c')
-rw-r--r--src/freedreno/ir3/ir3_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c
index 138f8f1af66..606e044d347 100644
--- a/src/freedreno/ir3/ir3_nir.c
+++ b/src/freedreno/ir3/ir3_nir.c
@@ -152,6 +152,7 @@ ir3_optimize_nir(struct ir3_shader *shader, nir_shader *s,
{
struct nir_lower_tex_options tex_options = {
.lower_rect = 0,
+ .lower_tg4_offsets = true,
};
if (key) {