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> (cherry picked from commit7b4bf219cc
)
This commit is contained in:
@@ -301,7 +301,7 @@
|
|||||||
"description": "r600: Account for color and clipvertex when evaluating LDS space",
|
"description": "r600: Account for color and clipvertex when evaluating LDS space",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "3340c7ce359252ad09b3e4d338837944482fb248"
|
"because_sha": "3340c7ce359252ad09b3e4d338837944482fb248"
|
||||||
},
|
},
|
||||||
|
@@ -740,9 +740,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