mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 18:38:11 +02:00
radeonsi: update si_get_vs_info and si_get_vs_state for tessellation
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
fff16e4ad2
commit
aa2fa6723a
1 changed files with 8 additions and 2 deletions
|
|
@ -268,14 +268,20 @@ struct si_shader {
|
|||
|
||||
static inline struct tgsi_shader_info *si_get_vs_info(struct si_context *sctx)
|
||||
{
|
||||
return sctx->gs_shader ? &sctx->gs_shader->info
|
||||
: &sctx->vs_shader->info;
|
||||
if (sctx->gs_shader)
|
||||
return &sctx->gs_shader->info;
|
||||
else if (sctx->tes_shader)
|
||||
return &sctx->tes_shader->info;
|
||||
else
|
||||
return &sctx->vs_shader->info;
|
||||
}
|
||||
|
||||
static inline struct si_shader* si_get_vs_state(struct si_context *sctx)
|
||||
{
|
||||
if (sctx->gs_shader)
|
||||
return sctx->gs_shader->current->gs_copy_shader;
|
||||
else if (sctx->tes_shader)
|
||||
return sctx->tes_shader->current;
|
||||
else
|
||||
return sctx->vs_shader->current;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue