radv: change the user SGPR idx of AC_UD_TES_STATE

When GS will be compiled separately, we will have to always declare
both VS and TES user SGPRs because we can't know the previous stage,
and the shader input arguments must match and mustn't overlap.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27431>
This commit is contained in:
Samuel Pitoiset
2024-02-02 11:41:39 +01:00
committed by Marge Bot
parent 3e9815173a
commit ffbd3e5b2d

View File

@@ -236,7 +236,10 @@ enum radv_ud_index {
AC_UD_TCS_OFFCHIP_LAYOUT = AC_UD_VS_MAX_UD,
AC_UD_TCS_EPILOG_PC,
AC_UD_TCS_MAX_UD,
AC_UD_TES_STATE = AC_UD_SHADER_START,
/* We might not know the previous stage when compiling a geometry shader, so we just
* declare both TES and VS user SGPRs.
*/
AC_UD_TES_STATE = AC_UD_VS_MAX_UD,
AC_UD_TES_MAX_UD,
AC_UD_MAX_UD = AC_UD_CS_MAX_UD,
};