freedreno/a3xx: alpha render-target shenanigans
authorRob Clark <robclark@freedesktop.org>
Fri, 12 Sep 2014 13:01:25 +0000 (09:01 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 12 Sep 2014 20:23:52 +0000 (16:23 -0400)
commit80058c0f08ea94d3de96909027a792e397fa9262
tree8276c035f6fc8ef2bc86718518f2b03142966731
parent3e0a82b52ebbf306adb0dd0f0990f7a8e8b271c5
freedreno/a3xx: alpha render-target shenanigans

We need the .w component to end up in .x, since the hw appears to fetch
gl_FragColor starting with the .x coordinate regardless of MRT format.
As long as we are doing this, we might as well throw out the remaining
unneeded components.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_draw.c
src/gallium/drivers/freedreno/ir3/ir3_compiler.c
src/gallium/drivers/freedreno/ir3/ir3_shader.c
src/gallium/drivers/freedreno/ir3/ir3_shader.h