st/mesa: fix switching from surface-based to non-surface-based textures
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:44 +0000 (13:58 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:44 +0000 (13:58 +0200)
commitd245724399b7ac9e2ddf99d381f7fe092204006a
treedfe3d07df0a1f8611496d66ef6607c93bd30a243
parenta2c8812f919c59933605c5942d6613e14ec8b3d1
st/mesa: fix switching from surface-based to non-surface-based textures

This can happen with surface-based texture objects derived from EGL
images, since those aren't immutable.

Fixes tests in dEQP-EGL.functional.sharing.gles2.multithread.random.images.teximage2d.* and others

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/texobj.c
src/mesa/main/texobj.h
src/mesa/state_tracker/st_cb_eglimage.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_manager.c
src/mesa/state_tracker/st_vdpau.c