freedreno/a3xx: alpha render-target shenanigans

Graphics / Mesa 3D Graphics Library / Mesa - Rob Clark [freedesktop.org] - 12 September 2014 15:23 UTC

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.

80058c0 freedreno/a3xx: alpha render-target shenanigans
src/gallium/drivers/freedreno/a3xx/fd3_draw.c | 2 ++
src/gallium/drivers/freedreno/ir3/ir3_compiler.c | 17 +++++++++++++++++
src/gallium/drivers/freedreno/ir3/ir3_shader.c | 1 +
src/gallium/drivers/freedreno/ir3/ir3_shader.h | 16 ++++++++++++++--
4 files changed, 34 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share