radeonsi: Set declared tessellation LDS size to hardware size.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 6 May 2016 19:06:14 +0000 (21:06 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 10 May 2016 18:14:55 +0000 (20:14 +0200)
commit3d21720d31a6d51702411b9aa2c0afc2639867bf
tree41057f63b784dd145e2764d65568b6be3ddb7f1a
parent8623e599fc050e33a1e19bc7f5aac59bc7fa3ae3
radeonsi: Set declared tessellation LDS size to hardware size.

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.

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c