mesa/marshal: add custom BufferData/BufferSubData marshalling
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 23 Mar 2017 06:19:36 +0000 (17:19 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 24 Mar 2017 00:23:06 +0000 (11:23 +1100)
commitadced4a2f9d017ae126a438f97eb305fa0ca3bd0
treea89f2b3626dcc3fe6132a3a2ffe56e83ec1b967d
parent0a32b52a27e8530bda1e5048783d37f578c5b3c9
mesa/marshal: add custom BufferData/BufferSubData marshalling

GL_AMD_pinned_memory requires memory to be aligned correctly, so
we skip marshalling in this case. Also copying the data defeats
the purpose of EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD.

Fixes GL_AMD_pinned_memory piglit tests when glthread is enabled.

Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/marshal.c
src/mesa/main/marshal.h