diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-15 11:10:13 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-05-16 16:11:53 +0200 |
commit | f4dbe2efb77be366c52cdd134876a6b00bf324bd (patch) | |
tree | 90c13be2bdab9c5afd8e21dc1e3636e1a3c18beb /src | |
parent | 3accda4b82a2b3df84d28c095d3ab8810acf613b (diff) |
radeonsi: fix gl_PrimitiveIDIn in geometry shader when using tessellation
This builds on commit 0549ea15ec38 ("radeonsi: fix primitive ID in
fragment shader when using tessellation").
Fixes piglit
arb_tessellation_shader/execution/gs-primitiveid-instanced.shader_test
Cc: 17.1 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 5da60148af2..f761073616a 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -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); } |