mesa: do not use _glapi_new_nop_table() for DRI builds
Commit 4bdbb588 introduced new _glapi_new_nop_table() and _glapi_set_nop_handler() functions in the glapi dispatcher (which live in libGL.so). The calls to those functions from context.c would be undefined (i.e. an ABI break) if the libGL used at runtime was older. For the time being, use the old single generic_nop() function for non-Windows builds to avoid this problem. At some point in the future it should be safe to remove this work-around. See comments for more details. v2: Incorporate feedback from Emil. Use _WIN32 instead of GLX_DIRECT_RENDERING to control behavior, move comments. Cc: 10.6 <mesa-stable@lists.freedesktop.org> Reviewed-and-tested-by:Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit be71bbfa) Squashed with commit 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> (cherry picked from commit 2b8c5183)
Loading
Please register or sign in to comment