freedreno/a3xx: fix border color swizzle to match texture format desc
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 3 Dec 2014 04:27:03 +0000 (23:27 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 6 Dec 2014 23:18:33 +0000 (18:18 -0500)
commitfc94b2c2a0600e3e84412d3a01491f2d069119a3
tree8ad60bb858bafded5e7303d512a295b60b497ed6
parent97fef2db5c2c6ec0b22bf5b7d968a4dc4b218363
freedreno/a3xx: fix border color swizzle to match texture format desc

This is a hack since it uses the texture information together with the
sampler, but I don't see a better way to do it. In OpenGL, there is a
1:1 correspondence.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c