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:
@@ -741,9 +741,15 @@ int r600_get_lds_unique_index(unsigned semantic_name, unsigned index)
|
|||||||
return 2 + index;
|
return 2 + index;
|
||||||
case TGSI_SEMANTIC_TEXCOORD:
|
case TGSI_SEMANTIC_TEXCOORD:
|
||||||
return 4 + index;
|
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:
|
case TGSI_SEMANTIC_GENERIC:
|
||||||
if (index <= 63-4)
|
if (index <= 63-17)
|
||||||
return 4 + index;
|
return 17 + index;
|
||||||
else
|
else
|
||||||
/* same explanation as in the default statement,
|
/* same explanation as in the default statement,
|
||||||
* the only user hitting this is st/nine.
|
* the only user hitting this is st/nine.
|
||||||
|
Reference in New Issue
Block a user