glapi: Encapsulate nop table knowledge in new _mesa_new_nop_table function
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 26 May 2015 18:41:44 +0000 (11:41 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 27 May 2015 01:25:41 +0000 (18:25 -0700)
commit2b8c51834bcc34a70dec9b470a28c0ef972d6993
treeb05724783798eb01762baa631870e74692f6854d
parent8d813d14e1f5c690c6737c6cd6fc01937a7d4246
glapi: Encapsulate nop table knowledge in new _mesa_new_nop_table function

Encapsulate the knowledge about how to build the nop table in a new
_mesa_new_nop_table function.  This makes it easier for dispatch_sanity
to keep working now and in the future.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
Cc: 10.6 <mesa-stable@lists.freedesktop.org>
src/mesa/main/api_exec.h
src/mesa/main/context.c
src/mesa/main/tests/dispatch_sanity.cpp