radeonsi: fix primitive ID in fragment shader when using tessellation
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 3 May 2017 09:40:07 +0000 (11:40 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 8 May 2017 15:42:17 +0000 (17:42 +0200)
commit0549ea15ec380f3ca6df76ce53ff4c30bfc21dbf
treede23cc6ecb224bec035facb9327033ad328331e4
parent854ed47f3e1501e4cc87bf9f19c6d4a1ad2bab08
radeonsi: fix primitive ID in fragment shader when using tessellation

In a VS->TCS->TES->PS pipeline, the primitive ID is read from TES exports,
so it is as if TES were using the primitive ID.

Specifically, this fixes a bug where the primitive ID is not reset at
the start of a new instance.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c