freedreno/a3xx: pass sprite coord mode through to program emit
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 4 Apr 2015 06:53:52 +0000 (02:53 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 5 Apr 2015 20:36:35 +0000 (16:36 -0400)
commitb060b56772cdb349478757382de036a20a2402ba
tree4198b12da56eca39524a932dfcbea9949612a08f
parent1de72dfc8a2014069edd1b3d3d46dad478d0680a
freedreno/a3xx: pass sprite coord mode through to program emit

Use the correct sprite replacement depending on the flip of the coord
mode, using either T or 1-T depending on whether we have an upper-left or
lower-left coordinate origin. This fixes all the point sprite piglits.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a3xx/fd3_draw.c
src/gallium/drivers/freedreno/a3xx/fd3_emit.h
src/gallium/drivers/freedreno/a3xx/fd3_program.c