mesa: Add infrastructure for a worker thread to process GL commands.
authorEric Anholt <eric@anholt.net>
Fri, 28 Dec 2012 23:05:34 +0000 (15:05 -0800)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Mar 2017 03:14:18 +0000 (14:14 +1100)
commitd8d81fbc31619f6ecf0a1b5ded22e5576e1d1739
tree6c6ea69c5f728dd8feb29598a63d6e2ba18ec569
parenta76a3cf664f93ca8a0a62281907a3f3342f44054
mesa: Add infrastructure for a worker thread to process GL commands.

v2: Keep an allocated buffer around instead of checking for one at the
    start of every GL command.  Inline the now-small space allocation
    function.
v3: Remove duplicate !glthread->shutdown check, process remaining work
    before shutdown.
v4: Fix leaks on destroy.
V5: (Timothy Arceri) fix order of source files in makefile

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/mesa/Makefile.sources
src/mesa/main/context.c
src/mesa/main/glthread.c [new file with mode: 0644]
src/mesa/main/glthread.h [new file with mode: 0644]
src/mesa/main/marshal.h [new file with mode: 0644]
src/mesa/main/mtypes.h