[Mesa-dev] [PATCH] radeonsi: Set declared tessellation LDS size to hardware size.
Marek Olšák
maraeo at gmail.com
Mon May 9 19:55:35 UTC 2016
On Sun, May 8, 2016 at 1:00 PM, Bas Nieuwenhuizen
<bas at basnieuwenhuizen.nl> wrote:
> The calculated limit gave problems on SI as it was > 32 KiB
> and the hardware LDS size on SI is only 32 KiB. It isn't
> correct anyway when processing multiple patches in a threadgroup.
>
> As we potentially have any number of patches such that the
> used LDS is at most the hardware LDS size, and exact size
> per patch is not known at compile time, this seems like
> the only valid bound.
I think NIcolai sent out a similar patch.
Would tessellation break if we set the size to 0 or a similar small
number? It seems like seemingly high LDS usage can trick LLVM now or
in the future into thinking that it doesn't have to schedule
instructions for low register usage.
Marek
More information about the mesa-dev
mailing list