glx: Remove noop dispatch table
We can never hit this, because the indirect GLX dispatch code always forces a current context and checks that it's non-NULL before calling into the dispatch table. If it's _not_ null, then _glapi_set_context will call into the driver, which is responsible for calling _glapi_set_dispatch to make sure the dispatch table is non-NULL. Also remove _glapi_set_warning_func and friends, since we can no longer call them even from dead code. Reviewed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
@@ -681,17 +681,8 @@ GLuint __glFloorLog2(GLuint val)
|
||||
return c;
|
||||
}
|
||||
|
||||
void warn_func(void * p1, char *format, ...) {
|
||||
va_list v;
|
||||
va_start(v, format);
|
||||
vfprintf(stderr, format, v);
|
||||
va_end(v);
|
||||
}
|
||||
|
||||
static void setup_dispatch_table(void) {
|
||||
struct _glapi_table *disp=_glapi_get_dispatch();
|
||||
_glapi_set_warning_func((_glapi_warning_func)warn_func);
|
||||
_glapi_noop_enable_warnings(TRUE);
|
||||
|
||||
/* to update:
|
||||
* for f in $(grep 'define SET_' ../../../glx/dispatch.h | cut -f2 -d' ' | cut -f1 -d\( | sort -u); do grep -q $f indirect.c || echo $f ; done | grep -v by_offset | sed 's:SET_\(.*\)$:SET_\1(disp, gl\1)\;:' | pbcopy
|
||||
|
||||
Reference in New Issue
Block a user