glthread: track for each VAO whether the user has set a user pointer
authorMarek Olšák <marek.olsak@amd.com>
Fri, 21 Feb 2020 00:28:56 +0000 (19:28 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 01:06:14 +0000 (01:06 +0000)
commit28a2ad7ddf76702a5de56a7bc0d8754b7dbd66a0
tree15e77758d8169b01a7dc20761ca7c575f2994093
parentd510e652d46f471a93eae5a07f7e7508633d1040
glthread: track for each VAO whether the user has set a user pointer

This commit mainly adds basic infrastructure for tracking vertex array
state.

If glthread gets a non-VBO pointer, this commit delays disabling
glthread until glDraw is called. The next will change that to "sync"
instead of "disable".

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
16 files changed:
src/mapi/glapi/gen/ARB_base_instance.xml
src/mapi/glapi/gen/ARB_draw_instanced.xml
src/mapi/glapi/gen/ARB_indirect_parameters.xml
src/mapi/glapi/gen/ARB_vertex_array_object.xml
src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml
src/mapi/glapi/gen/EXT_direct_state_access.xml
src/mapi/glapi/gen/GL3x.xml
src/mapi/glapi/gen/es_EXT.xml
src/mapi/glapi/gen/gl_API.xml
src/mesa/Makefile.sources
src/mesa/main/glthread.c
src/mesa/main/glthread.h
src/mesa/main/glthread_varray.c [new file with mode: 0644]
src/mesa/main/marshal.c
src/mesa/main/marshal.h
src/mesa/meson.build