radeonsi: do not kill GS with memory writes
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 29 Nov 2016 15:33:31 +0000 (16:33 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Dec 2016 08:04:10 +0000 (09:04 +0100)
commit7655bccce80c9690ecb850304d15238ef1e0d622
tree7f9d0b745685d9033dcd83a5af76ddf57f004577
parent7b5b3d63c5f33bbd49f4b11c282603baa9371c10
radeonsi: do not kill GS with memory writes

Vertex emits beyond the specified maximum number of vertices are supposed to
have no effect, which is why we used to always kill GS that reached the limit.

However, if the GS also writes to memory (SSBO, atomics, shader images), then
we must keep going and only skip the vertex emit itself.

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