[Mesa-dev] [PATCH v2 2/2] st/mesa: provide GL_OES_copy_image support by caching the original ETC data

Marek Olšák maraeo at gmail.com
Thu Jul 28 11:25:56 UTC 2016


Well, I couldn't find anything wrong with this.

Marek

On Sat, Jul 16, 2016 at 6:21 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> 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 at alum.mit.edu>
> ---
>  docs/GL3.txt                             |  2 +-
>  docs/relnotes/12.1.0.html                |  1 +
>  src/mesa/state_tracker/st_cb_copyimage.c | 96 +++++++++++++++++++++++++++++++-
>  src/mesa/state_tracker/st_cb_texture.c   | 77 +++++++++++++++++--------
>  src/mesa/state_tracker/st_extensions.c   | 12 +---
>  src/mesa/state_tracker/st_texture.h      |  7 ++-
>  6 files changed, 156 insertions(+), 39 deletions(-)


More information about the mesa-dev mailing list