etnaviv: vectorise io

This etnaviv backend code depends heavly on optimisation passes eliminating
all but a single write to shader outputs. Here we make sure that shader
output writes are vectorised.

Fixes: 7647023f3b ("glsl: enable the use of the nir based varying linker")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6536

Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16683>
This commit is contained in:
Timothy Arceri 2022-05-24 14:38:11 +10:00 committed by Marge Bot
parent 0a19ae1e98
commit 1c186580e1

View file

@ -1117,6 +1117,7 @@ etna_screen_create(struct etna_device *dev, struct etna_gpu *gpu,
.lower_uniforms_to_ubo = screen->specs.halti >= 2,
.force_indirect_unrolling = nir_var_all,
.max_unroll_iterations = 32,
.vectorize_io = true,
};
/* apply debug options that disable individual features */