radeonsi: Don't leave gaps between position exports from vertex shader
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 7 Aug 2013 16:14:16 +0000 (18:14 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 15 Aug 2013 15:42:26 +0000 (17:42 +0200)
commitb00269aa5887b88d2e037d6bfa374779902f8743
treee5f3a59d7563f4fba6deb86774523ec6e4d3e1e6
parentabdd32dcd5569c7caa393acd21753e03de24047f
radeonsi: Don't leave gaps between position exports from vertex shader

If the vertex shader exports clip distances but not point size, use
position exports 1/2 instead of 2/3 for the clip distances. Fixes
geometry corruption in that case.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66974

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c
src/gallium/drivers/radeonsi/radeonsi_shader.h
src/gallium/drivers/radeonsi/si_state_draw.c