r600: workaround empty geom shader.
authorDave Airlie <airlied@redhat.com>
Tue, 24 Feb 2015 04:09:40 +0000 (14:09 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Dec 2015 02:58:43 +0000 (12:58 +1000)
commit4f347225752b48f3dc5a59a6be71fe78616252a7
treeb9d34d797b7b65f8503fe81482a43e02e6dbf7bb
parent04efcc6c7adfda75b425f443588f0faab453ba3a
r600: workaround empty geom shader.

We need to emit at least one cut/emit in every
geometry shader, the easiest workaround it to
stick a single CUT at the top of each geom shader.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: "10.6 11.0 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c