st/mesa: Gallium support for ARB_fragment_coord_conventions (v4)
authorLuca Barbieri <luca@luca-barbieri.com>
Thu, 21 Jan 2010 05:37:48 +0000 (06:37 +0100)
committerLuca Barbieri <luca@luca-barbieri.com>
Fri, 29 Jan 2010 13:14:29 +0000 (14:14 +0100)
commit62c673b6ac65d27ed83acc92434874b45f75db5c
tree8c6519c4c679fd10261e2c2416ba382179869a2a
parent6c403750d6515f8b2f333d995c87676016e1883d
st/mesa: Gallium support for ARB_fragment_coord_conventions (v4)

Changes in v4;
- Implemented Brian Paul's style suggestions

Changes in v3:
- Use positive caps instead of negative ones

Changes in v2:
- Updated formatting

The state tracker will use the TGSI convention properties if the hardware
exposes the appropriate capability, and otherwise adjust WPOS itself.

This will also fix some drivers that were previously broken due to their
incorrect, inadvertent, use of conventions other than upper_left+half_integer.
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_mesa_to_tgsi.c