[Mesa-dev] [PATCH] radv/ac: enable loop unrolling.

Marek Olšák maraeo at gmail.com
Fri Feb 24 22:39:46 UTC 2017

On Fri, Feb 24, 2017 at 7:20 PM, Matt Arsenault <arsenm2 at gmail.com> wrote:
> On Feb 24, 2017, at 01:45, Marek Olšák <maraeo at gmail.com> wrote:
> The main requirement is that if there is indirect indexing inside a
> loop, we always want to unroll the whole loop to get rid of the
> indexing, which can decrease scratch usage.
> Marek
> We boost the unroll thresholds when there is private memory indexed by the
> induction variable. See AMDGPUTTIImpl::getUnrollingPreferences

When Samuel Pitoiset was experimenting with the same code as this
patch but for radeonsi, getUnrollingPreferences wasn't even getting
called when unrolling. I guess he eventually gave up or didn't see any
positive effect from it.


More information about the mesa-dev mailing list