radv: declare streamout buffers for TES+GS compiled separately on GFX9+

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27432>
This commit is contained in:
Samuel Pitoiset
2024-01-31 15:03:04 +01:00
committed by Marge Bot
parent 83bc7e27a5
commit e15d1ed7cb

View File

@@ -129,7 +129,8 @@ declare_global_input_sgprs(const struct radv_shader_info *info, const struct use
const bool needs_streamout_buffers =
info->so.num_outputs ||
(info->merged_shader_compiled_separately &&
((info->stage == MESA_SHADER_VERTEX && info->vs.as_es) || info->stage == MESA_SHADER_GEOMETRY));
((info->stage == MESA_SHADER_VERTEX && info->vs.as_es) ||
(info->stage == MESA_SHADER_TESS_EVAL && info->tes.as_es) || info->stage == MESA_SHADER_GEOMETRY));
if (needs_streamout_buffers) {
add_ud_arg(args, 1, AC_ARG_CONST_DESC_PTR, &args->streamout_buffers, AC_UD_STREAMOUT_BUFFERS);