freedreno/a4xx: use hardware RGTC texture samplers
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 20 Nov 2015 23:34:03 +0000 (18:34 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Nov 2015 00:46:21 +0000 (19:46 -0500)
commitfe29330406f8ea277b2c02f9c6dd2da78796ea84
tree1ba00808c30fdf4bed22e82219eae0ef408e289b
parent39fa5c8419076f6ec84de0252905617feb70f279
freedreno/a4xx: use hardware RGTC texture samplers

a4xx hardware has real support for RGTC so there's no need to fake it
like we do on a3xx. Undo the hacks, and keep track of an "internal
format" of a resource, which on a3xx will be different, triggering the
transfer-time conversions to take place.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
src/gallium/drivers/freedreno/a4xx/fd4_format.c
src/gallium/drivers/freedreno/a4xx/fd4_format.h
src/gallium/drivers/freedreno/a4xx/fd4_texture.c
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/freedreno/freedreno_resource.h