st/mesa: provide GL_OES_copy_image support by caching the original ETC data
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 8 Jul 2016 06:44:57 +0000 (02:44 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 13 Aug 2016 00:21:08 +0000 (20:21 -0400)
commitd816a51b81f42b0aa4819a32587b4aa167e4b541
treea8a69c2e756c2d5e1925d3f2de62fa64bc937e8f
parent7727e6f67c47ab0a36d5646092ee89852523cad8
st/mesa: provide GL_OES_copy_image support by caching the original ETC data

The additional provision of GL_OES_copy_image is that it work for ETC.
However many desktop GPUs don't have native ETC support, so st/mesa does
the decoding by hand. Instead of discarding the compressed data, keep it
around in CPU memory. Use it when performing image copies.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Marek Olšák <marek.olsak@amd.com>
docs/GL3.txt
docs/relnotes/12.1.0.html
src/mesa/state_tracker/st_cb_copyimage.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_texture.h