r600: Account for color and clipvertex when evaluating LDS space

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

Fixes: 3340c7ce359252ad09b3e4d338837944482fb248
   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>
(cherry picked from commit 7b4bf219cc9dfa6320366e03d6055cdcbf5add5e)
This commit is contained in:
Gert Wollny 2022-10-25 17:41:15 +02:00 committed by Dylan Baker
parent a784fe2937
commit 564410045d
2 changed files with 9 additions and 3 deletions

View File

@ -301,7 +301,7 @@
"description": "r600: Account for color and clipvertex when evaluating LDS space",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "3340c7ce359252ad09b3e4d338837944482fb248"
},

View File

@ -740,9 +740,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.