mesa: Statically allocate glthread command buffer in the batch struct.
authorEric Anholt <eric@anholt.net>
Sat, 16 Feb 2013 00:33:33 +0000 (16:33 -0800)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Mar 2017 03:14:19 +0000 (14:14 +1100)
commit47f819d3cb89ab90914181e3c61744ac1f16e056
treeb093a34150d1a28d5422a2b5201d354e8a078fc6
parent1d6b71c5c6264f9cc0f7ae7c35d27b5c88f3f8bf
mesa: Statically allocate glthread command buffer in the batch struct.

This avoids an extra pointer dereference in the marshalling functions,
which, with the instruction count doing in the low 30s, could actually
matter for main-thread performance.

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/main/glthread.c
src/mesa/main/glthread.h