r600: Account for color and clipvertex when evaluating LDS space

Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6926

Fixes: 3340c7ce35
   r600/sfn: lower CLIPVERTEX to clip planes

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19300>
This commit is contained in:
Gert Wollny
2022-10-25 17:41:15 +02:00
committed by Marge Bot
parent d380551544
commit 7b4bf219cc

View File

@@ -741,9 +741,15 @@ int r600_get_lds_unique_index(unsigned semantic_name, unsigned index)
return 2 + index;
case TGSI_SEMANTIC_TEXCOORD:
return 4 + index;
case TGSI_SEMANTIC_COLOR:
return 12 + index;
case TGSI_SEMANTIC_BCOLOR:
return 14 + index;
case TGSI_SEMANTIC_CLIPVERTEX:
return 16;
case TGSI_SEMANTIC_GENERIC:
if (index <= 63-4)
return 4 + index;
if (index <= 63-17)
return 17 + index;
else
/* same explanation as in the default statement,
* the only user hitting this is st/nine.