frontend/dri: sync glthread when calling from the app side
authorMarek Olšák <marek.olsak@amd.com>
Wed, 24 Aug 2022 06:21:00 +0000 (02:21 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 21 Sep 2022 14:54:50 +0000 (14:54 +0000)
commiteafe72a6ccccc5528dd64dabd26557114f054fa8
tree6031384f1579e7efef083830408e1a801280ff40
parentc0a05b604af5510654b7a111fc8678297d79ab38
frontend/dri: sync glthread when calling from the app side

The comments explain the reasons.

This is a prerequisite for glthread to be used by native drivers, swrast,
and zink.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18223>
src/gallium/frontends/dri/dri2.c
src/gallium/frontends/dri/dri_context.c
src/gallium/frontends/dri/dri_drawable.c
src/gallium/frontends/dri/dri_helpers.c
src/gallium/frontends/dri/drisw.c
src/gallium/frontends/dri/kopper.c