mesa: Create pointers for multithread marshalling dispatch table.
authorPaul Berry <stereotype441@gmail.com>
Wed, 3 Oct 2012 22:39:52 +0000 (15:39 -0700)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Mar 2017 03:14:18 +0000 (14:14 +1100)
commitef30ce97a6bc0a9a6e625df6964e1cdea0ccee4b
tree79491b67563fa5c631a9675092d10f26dff3ea79
parentd8d81fbc31619f6ecf0a1b5ded22e5576e1d1739
mesa: Create pointers for multithread marshalling dispatch table.

This patch splits the context's CurrentDispatch pointer into two
pointers, CurrentClientDispatch, and CurrentServerDispatch, so that
when doing multithread marshalling, we can distinguish between the
dispatch table that's being used by the client (to serialize GL calls
into the marshal buffer) and the dispatch table that's being used by
the server (to execute the GL calls).

Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
Acked-by: Marek Olšák <maraeo@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
src/mapi/glapi/gen/gl_apitemp.py
src/mesa/main/context.c
src/mesa/main/dlist.c
src/mesa/main/glthread.c
src/mesa/main/mtypes.h
src/mesa/main/robustness.c
src/mesa/main/varray.c
src/mesa/vbo/vbo_exec_api.c