freedreno: a2xx: Fix fd2_tex_swiz
authorWladimir J. van der Laan <laanwj@gmail.com>
Fri, 25 Aug 2017 14:25:18 +0000 (14:25 +0000)
committerWladimir J. van der Laan <laanwj@gmail.com>
Sat, 31 Mar 2018 06:17:59 +0000 (06:17 +0000)
commitfb413727618608e65013b13f3601ceefe6d36f9b
tree33b0e2e9d38a9016059ccd561dcb4f4cf52a7a8c
parentfaed84a6151076f0e38d85ea403bb576710fa207
freedreno: a2xx: Fix fd2_tex_swiz

Compose swizzles using util_format_compose_swizzles instead
of the custom code (which somehow had a bug).

This makes the GL_ALPHA internal format work.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/fd2_util.c