radeonsi: Always pre-load separate VGPRs for centroid vs. center interpolation
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 19 Aug 2013 13:45:32 +0000 (15:45 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 20 Aug 2013 16:50:28 +0000 (18:50 +0200)
commitbe301f707e8c6ba3bb0574e64a0a4f1653af8fb7
tree987280265373157a952dbdf9b9621106c4e41ebb
parent5edcb682c9441ccce84d6bee959b8c4b3671bf0e
radeonsi: Always pre-load separate VGPRs for centroid vs. center interpolation

The LLVM R600 backend currently always uses separate VGPRs for these.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68162
(Centroid interpolation is identical to center interpolation without
multisampling, so the shader hardware was only pre-loading one set of
interpolation coefficients, and the pixel shader code was using
uninitialized values as the centroid interpolation coefficients)

Cc: mesa-stable@lists.freedesktop.org
Tested-by: Laurent Carlier <lordheavym@gmail.com>
src/gallium/drivers/radeonsi/si_state_draw.c