mesa/src/mapi
Marek Olšák 33ad9e77c5 glthread: add display list support to fix state tracking with display lists
The existing display list code is reused to call display lists from the app
thread. The util_queue_fence_wait call waits for the last call that modifies
display lists (such as glEndList and glDeleteLists), which ensures that
accessing display lists from a non-mesa thread is thread safe because
the wait guarantees that display lists are immutable during the asynchronous
display list execution.

Display lists are executed just like normal display lists except that they
call glthread functions instead of the default GL dispatch. Many calls in
display lists are skipped because glthread only tracks a few states.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8297>
2021-01-21 00:12:35 +00:00
..
es1api meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
es2api meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
glapi glthread: add display list support to fix state tracking with display lists 2021-01-21 00:12:35 +00:00
new Switch from cElementTree to ElementTree. 2020-06-05 23:42:54 -07:00
shared-glapi mapi: Mark TLS symbols as optional in glapi-symbols.txt 2020-08-05 18:08:07 +00:00
Android.mk android: fix typo LOCAL_EXPORT_C_INCLUDES 2019-06-29 17:17:49 +02:00
entry.c mapi: do not call thread-unsafe dispatch getter 2020-10-26 12:35:21 +00:00
entry.h
entry_ppc64le_tls.h mapi: Enable assembly language API acceleration for PPC64LE (V2) 2017-06-28 08:20:45 +01:00
entry_ppc64le_tsd.h mapi: Enable assembly language API acceleration for PPC64LE (V2) 2017-06-28 08:20:45 +01:00
entry_x86-64_tls.h x86: Add ENDBR at function entries 2020-03-26 16:38:46 -07:00
entry_x86_tls.h x86: Add ENDBR at function entries 2020-03-26 16:38:46 -07:00
entry_x86_tsd.h mapi: x86: Fix dynamic entries in x86 tsd stubs. 2020-06-26 18:28:01 +00:00
Makefile.sources mapi: autotools: remove unused MAPI_FILES file list 2018-01-25 17:42:46 +00:00
mapi_abi.py GL: drop symbols mangling support 2019-10-10 21:40:48 +01:00
mapi_glapi.c mapi: Return NULL function pointers for GL_EXT_debug_marker 2020-07-30 23:45:56 +00:00
mapi_tmp.h
meson.build meson: fix logic for generating .pc files with old glvnd 2019-09-25 23:25:27 +00:00
stub.c
stub.h
table.c
table.h mapi: replace mapi_table abstraction 2017-05-04 18:17:03 +01:00
u_current.c mapi: do not return thread-specific data for wrong thread 2020-10-26 12:35:22 +00:00
u_current.h mapi: do not call thread-unsafe dispatch getter 2020-10-26 12:35:21 +00:00
u_execmem.c mesa: Fix NetBSD compiler macro. 2020-06-03 21:09:54 -07:00
u_execmem.h