st/mesa: return appropriate mesa format for ETC texture formats
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 8 Jul 2016 03:46:28 +0000 (23:46 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 12 Jul 2016 01:17:30 +0000 (21:17 -0400)
commit00d4315d37ec736fccfee50a402fa2a929054bde
tree9f0d1d2abdc9a0842e07073e9f24f484da111c0f
parent8ee3cdde049d30095451f44080a9cd2d6e949459
st/mesa: return appropriate mesa format for ETC texture formats

Even when the backend driver does not support ETC formats, we handle the
decoding into an uncompressed backing texture. However as far as core
mesa is concerned, it's an ETC texture and we should return the relevant
ETC mesa format. This condition can get hit when using glTexStorage to
create the texture object.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
src/mesa/state_tracker/st_format.c