mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
radeonsi: fix gl_PrimitiveIDIn in geometry shader when using tessellation
This builds on commit 0549ea15ec ("radeonsi: fix primitive ID in
fragment shader when using tessellation").
Fixes piglit
arb_tessellation_shader/execution/gs-primitiveid-instanced.shader_test
Cc: 17.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
3accda4b82
commit
f4dbe2efb7
1 changed files with 2 additions and 0 deletions
|
|
@ -2133,6 +2133,8 @@ static void si_update_tcs_tes_uses_prim_id(struct si_context *sctx)
|
|||
sctx->tes_shader.cso->info.uses_primid) ||
|
||||
(sctx->tcs_shader.cso &&
|
||||
sctx->tcs_shader.cso->info.uses_primid) ||
|
||||
(sctx->gs_shader.cso &&
|
||||
sctx->gs_shader.cso->info.uses_primid) ||
|
||||
(sctx->ps_shader.cso && !sctx->gs_shader.cso &&
|
||||
sctx->ps_shader.cso->info.uses_primid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue