radeonsi: Fix w component of TGSI_SEMANTIC_POSITION fragment shader inputs.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 13 Feb 2013 14:57:23 +0000 (15:57 +0100)
committerMichel Dänzer <michel@daenzer.net>
Thu, 21 Feb 2013 09:06:52 +0000 (10:06 +0100)
commit954bc4ac34b821cdc4ecb3ea8e394a66bcc2dda0
tree3e1cd81c3de6363ce27b566fe3adb2678050e8d3
parent18272c9b1b530ad6d2091b647c062793f94b5351
radeonsi: Fix w component of TGSI_SEMANTIC_POSITION fragment shader inputs.

It's the reciprocal of the register value.

Fixes piglit fragcoord_w and glsl-fs-fragcoord-zw-perspective.

NOTE: This is a candidate for the 9.1 branch.
src/gallium/drivers/radeonsi/radeonsi_shader.c