r300: reorder fog coordinate and WPOS fp attributes
authorMaciej Cencora <m.cencora@gmail.com>
Tue, 7 Apr 2009 22:47:16 +0000 (00:47 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 9 Apr 2009 00:31:51 +0000 (10:31 +1000)
commit1ec0efa7d3a7fb0f3f81b83677c415cf835a7efc
treec0b93cc1754526b744cdbb7e17a35a6b45f39182
parent3b1d5440015c2bfa76d91bd8bb3954bde48f4815
r300: reorder fog coordinate and WPOS fp attributes

HW TCL path currently assumed fog, WPOS order. The order was inverted for SW TCL path.

This hopefully fixes rest of fog and WPOS related bugs.
Additionally fix some indentation, don't route unnecessary components of fog coordinates for performance reasons and simplify vertex
attribute emitting for SW TCL path.
src/mesa/drivers/dri/r300/r300_emit.c
src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/r300/r300_swtcl.c