mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 04:00:23 +01:00
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:
parent
d380551544
commit
7b4bf219cc
1 changed files with 8 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue