mesa/src
Brian Paul 08d97aadd1 st/mesa: fix texture deletion context mix-up issues (v2)
When we destroy a context, we need to temporarily make that context
the current one for the thread.

That's because during context tear-down we make many calls to
_mesa_reference_texobj(&texObj, NULL).  Note there's no context
parameter.  If the texture's refcount goes to zero and we need to
delete it, we use the thread's current context.  But if that context
isn't the context we're tearing down, we get into trouble when
deallocating sampler views.  See patch 593e36f956 ("st/mesa:
implement "zombie" sampler views (v2)") for background information.

Also, we need to release any sampler views attached to the fallback
textures.

Fixes a crash on exit with a glretrace of the Nobel Clinician
application.

v2: at end of st_destroy_context(), check if save_ctx == ctx and
unbind the context if so.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2019-03-25 06:57:57 -06:00
..
amd radv: write availability status vkGetQueryPoolResults() when the data is not available 2019-03-25 08:21:22 +01:00
broadcom v3d: Remove some dead members of struct v3d_compile. 2019-03-21 14:20:50 -07:00
compiler nir: fix a few signed/unsigned comparison warnings 2019-03-25 06:51:31 -06:00
egl egl: Add a 565 pbuffer-only EGL config under X11. 2019-03-22 15:22:40 -07:00
freedreno spirv,nir: lower frexp_exp/frexp_sig inside a new NIR pass 2019-03-22 19:41:46 +01:00
gallium android: static link with libexpat with Android O+ 2019-03-25 10:11:57 +02:00
gbm gbm: drop duplicate #defines 2019-02-14 11:20:00 +00:00
getopt
glx glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
gtest meson: hide warnings from external project gtest 2018-10-31 18:20:25 +00:00
hgl hgl/meson: drop unused include directory 2019-03-08 18:00:19 +00:00
imgui imgui: update memory editor 2019-02-26 12:49:07 +00:00
intel android: static link with libexpat with Android O+ 2019-03-25 10:11:57 +02:00
loader loader: use loader_open_device() to handle O_CLOEXEC 2019-02-26 11:07:23 +00:00
mapi configure.ac/meson.build: Add options for library suffixes 2019-03-21 10:18:31 -07:00
mesa st/mesa: fix texture deletion context mix-up issues (v2) 2019-03-25 06:57:57 -06:00
util android: static link with libexpat with Android O+ 2019-03-25 10:11:57 +02:00
vulkan vulkan/overlay: improve error reporting 2019-03-22 11:26:04 +00:00
Makefile.am build: move imgui out of src/intel/tools to be reused 2019-02-21 18:06:05 +00:00
meson.build turnip: Add driver skeleton (v2) 2019-03-11 10:01:15 -07:00
SConscript scons: Remove gles option. 2018-10-19 16:50:26 +01:00