[Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

Eric Anholt eric at anholt.net
Mon Nov 27 02:01:57 UTC 2017


Gert Wollny <gw.fossdev at gmail.com> writes:

> Array who's elements are only accessed directly are replaced by the
> according number of temporary registers. By doing so the otherwise
> reserved register range becomes subject to further optimizations like
> copy propagation and register merging.
>
> Thanks to the resulting reduced register pressure this patch makes
> the piglits
>
>   spec/glsl-1.50/execution -
>       variable-indexing/vs-output-array-vec3-index-wr-before-gs
>       geometry/max-input-components
>
> pass on r600 (barts) where they would fail before with a "GPR limit exceeded"
> error. 
>
> Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
> ---
> No further changes are observed with the piglit shader subset. 
>
> PS: Submitter has no write access to mesa-git

This looks like something that should be done with (at most) a small
change to opt_array_splitting.cpp, rather than reimplementing it here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171126/02c80eaf/attachment.sig>


More information about the mesa-dev mailing list