summaryrefslogtreecommitdiff
path: root/lib/mesa/src/glx
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-01-22 02:49:53 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-01-22 02:49:53 +0000
commitd264279e28002d81821c883795911844a4c01a2c (patch)
treeb0481616eda55b543a0dc1487d096c3239885c41 /lib/mesa/src/glx
parentfdcc03929065b5bf5dd93553db219ea3e05c8c34 (diff)
Merge Mesa 19.2.8
Diffstat (limited to 'lib/mesa/src/glx')
-rw-r--r--lib/mesa/src/glx/Makefile.am195
-rw-r--r--lib/mesa/src/glx/Makefile.in1202
-rw-r--r--lib/mesa/src/glx/apple/Makefile.am46
-rw-r--r--lib/mesa/src/glx/apple/Makefile.in820
-rw-r--r--lib/mesa/src/glx/dri2_glx.c15
-rw-r--r--lib/mesa/src/glx/dri3_glx.c21
-rw-r--r--lib/mesa/src/glx/dri_common.c56
-rw-r--r--lib/mesa/src/glx/drisw_glx.c33
-rw-r--r--lib/mesa/src/glx/g_glxglvnddispatchfuncs.c86
-rw-r--r--lib/mesa/src/glx/glxclient.h10
-rw-r--r--lib/mesa/src/glx/glxcmds.c16
-rw-r--r--lib/mesa/src/glx/glxconfig.c70
-rw-r--r--lib/mesa/src/glx/glxextensions.h1
-rw-r--r--lib/mesa/src/glx/glxglvnd.c2
-rw-r--r--lib/mesa/src/glx/indirect.c11194
-rw-r--r--lib/mesa/src/glx/indirect.h724
-rw-r--r--lib/mesa/src/glx/indirect_init.c1215
-rw-r--r--lib/mesa/src/glx/indirect_size.c379
-rw-r--r--lib/mesa/src/glx/indirect_size.h85
-rw-r--r--lib/mesa/src/glx/meson.build29
-rw-r--r--lib/mesa/src/glx/tests/Makefile.am40
-rw-r--r--lib/mesa/src/glx/tests/Makefile.in924
-rw-r--r--lib/mesa/src/glx/windows/Makefile.am36
-rw-r--r--lib/mesa/src/glx/windows/Makefile.in918
-rw-r--r--lib/mesa/src/glx/windows/windowsdriproto.pc.in9
25 files changed, 212 insertions, 17914 deletions
diff --git a/lib/mesa/src/glx/Makefile.am b/lib/mesa/src/glx/Makefile.am
deleted file mode 100644
index 79d673ad5..000000000
--- a/lib/mesa/src/glx/Makefile.am
+++ /dev/null
@@ -1,195 +0,0 @@
-# Copyright © 2012 Intel Corporation
-#
-# Permission is hereby granted, free of charge, to any person obtaining a
-# copy of this software and associated documentation files (the "Software"),
-# to deal in the Software without restriction, including without limitation
-# the rights to use, copy, modify, merge, publish, distribute, sublicense,
-# and/or sell copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice (including the next
-# paragraph) shall be included in all copies or substantial portions of the
-# Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-# IN THE SOFTWARE.
-
-
-SUBDIRS =
-
-EXTRA_DIST = SConscript meson.build
-
-AM_CFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/include/GL/internal \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/src/loader \
- -I$(top_builddir)/src/mapi \
- -I$(top_srcdir)/src/mapi \
- -I$(top_builddir)/src/mapi/glapi \
- -I$(top_srcdir)/src/mapi/glapi \
- $(VISIBILITY_CFLAGS) \
- -D_REENTRANT \
- $(DEFINES) \
- $(LIBDRM_CFLAGS) \
- $(DRI2PROTO_CFLAGS) \
- $(GLPROTO_CFLAGS) \
- $(X11_INCLUDES)
-
-lib_LTLIBRARIES = lib@GL_LIB@.la
-
-noinst_LTLIBRARIES = libglx.la
-
-libglx_la_SOURCES = \
- clientattrib.c \
- clientinfo.c \
- compsize.c \
- create_context.c \
- eval.c \
- glxclient.h \
- glxcmds.c \
- glxconfig.c \
- glxconfig.h \
- glxcurrent.c \
- glx_error.c \
- glx_error.h \
- glxext.c \
- glxextensions.c \
- glxextensions.h \
- glxhash.c \
- glxhash.h \
- glx_pbuffer.c \
- glx_query.c \
- indirect.c \
- indirect_glx.c \
- indirect_init.c \
- indirect_init.h \
- indirect_size.c \
- indirect_texture_compression.c \
- indirect_transpose_matrix.c \
- indirect_vertex_array.c \
- indirect_vertex_array.h \
- indirect_vertex_array_priv.h \
- indirect_vertex_program.c \
- indirect_window_pos.c \
- packrender.h \
- packsingle.h \
- pixel.c \
- pixelstore.c \
- query_renderer.c \
- render2.c \
- renderpix.c \
- single2.c \
- singlepix.c \
- vertarr.c
-
-libglx_la_LIBADD = \
- $(top_builddir)/src/loader/libloader.la \
- $(top_builddir)/src/util/libmesautil.la \
- $(top_builddir)/src/util/libxmlconfig.la
-
-if HAVE_DRISW
-libglx_la_SOURCES += \
- drisw_glx.c \
- drisw_priv.h
-endif
-
-if HAVE_DRICOMMON
-libglx_la_SOURCES += \
- dri_common.c \
- dri_common.h \
- dri_common_query_renderer.c \
- dri_common_interop.c \
- xfont.c
-endif
-
-if HAVE_DRI2
-libglx_la_SOURCES += \
- dri2.c \
- dri2_glx.c \
- dri2.h \
- dri2_priv.h \
- dri_glx.c \
- dri_sarea.h \
- XF86dri.c \
- xf86dri.h \
- xf86dristr.h
-endif
-
-if HAVE_DRI3
-libglx_la_SOURCES += \
- dri3_glx.c \
- dri3_priv.h
-
-libglx_la_LIBADD += $(top_builddir)/src/loader/libloader_dri3_helper.la
-endif
-
-if HAVE_APPLEDRI
-libglx_la_SOURCES += \
- applegl_glx.c
-
-SUBDIRS += apple
-libglx_la_LIBADD += $(builddir)/apple/libappleglx.la
-endif
-
-if HAVE_WINDOWSDRI
-libglx_la_SOURCES += \
- driwindows_glx.c
-
-SUBDIRS += windows
-libglx_la_LIBADD += \
- $(builddir)/windows/libwindowsdri.la \
- $(builddir)/windows/libwindowsglx.la
-endif
-
-if USE_LIBGLVND
-AM_CFLAGS += \
- -DGL_LIB_NAME=\"lib@GL_LIB@.so\" \
- $(GLVND_CFLAGS)
-
-libglx_la_SOURCES += \
- g_glxglvnddispatchfuncs.c \
- g_glxglvnddispatchindices.h \
- glxglvnd.c \
- glxglvnd.h \
- glxglvnddispatchfuncs.h
-
-GL_LIB_VERSION=0
-else
-AM_CFLAGS += \
- -DGL_LIB_NAME=\"lib@GL_LIB@.so.1\"
-GL_LIB_VERSION=1:2
-endif
-
-# Push the libdrm furhter up, as due to libtool bug we might end up relinking
-# against the system one.
-GL_LIBS = \
- $(LIBDRM_LIBS) \
- libglx.la \
- $(top_builddir)/src/mapi/glapi/libglapi.la \
- $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
- $(GL_LIB_DEPS)
-
-GL_LDFLAGS = \
- -no-undefined \
- -version-number $(GL_LIB_VERSION) \
- $(BSYMBOLIC) \
- $(GC_SECTIONS) \
- $(LD_NO_UNDEFINED)
-
-lib@GL_LIB@_la_SOURCES =
-lib@GL_LIB@_la_LIBADD = $(GL_LIBS)
-lib@GL_LIB@_la_LDFLAGS = $(GL_LDFLAGS)
-
-if HAVE_WINDOWSDRI
-lib@GL_LIB@_la_LDFLAGS += -lgdi32 -lopengl32 -Wl,--disable-stdcall-fixup
-endif
-
-SUBDIRS += . tests
-
-include $(top_srcdir)/install-lib-links.mk
diff --git a/lib/mesa/src/glx/Makefile.in b/lib/mesa/src/glx/Makefile.in
deleted file mode 100644
index 7229a61f5..000000000
--- a/lib/mesa/src/glx/Makefile.in
+++ /dev/null
@@ -1,1202 +0,0 @@
-# Makefile.in generated by automake 1.12.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2012 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright © 2012 Intel Corporation
-#
-# Permission is hereby granted, free of charge, to any person obtaining a
-# copy of this software and associated documentation files (the "Software"),
-# to deal in the Software without restriction, including without limitation
-# the rights to use, copy, modify, merge, publish, distribute, sublicense,
-# and/or sell copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice (including the next
-# paragraph) shall be included in all copies or substantial portions of the
-# Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-# IN THE SOFTWARE.
-
-# Provide compatibility with scripts for the old Mesa build system for
-# a while by putting a link to the driver into /lib of the build tree.
-
-VPATH = @srcdir@
-am__make_dryrun = \
- { \
- am__dry=no; \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
- | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
- *) \
- for am__flg in $$MAKEFLAGS; do \
- case $$am__flg in \
- *=*|--*) ;; \
- *n*) am__dry=yes; break;; \
- esac; \
- done;; \
- esac; \
- test $$am__dry = yes; \
- }
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-@HAVE_DRISW_TRUE@am__append_1 = \
-@HAVE_DRISW_TRUE@ drisw_glx.c \
-@HAVE_DRISW_TRUE@ drisw_priv.h
-
-@HAVE_DRICOMMON_TRUE@am__append_2 = \
-@HAVE_DRICOMMON_TRUE@ dri_common.c \
-@HAVE_DRICOMMON_TRUE@ dri_common.h \
-@HAVE_DRICOMMON_TRUE@ dri_common_query_renderer.c \
-@HAVE_DRICOMMON_TRUE@ dri_common_interop.c \
-@HAVE_DRICOMMON_TRUE@ xfont.c
-
-@HAVE_DRI2_TRUE@am__append_3 = \
-@HAVE_DRI2_TRUE@ dri2.c \
-@HAVE_DRI2_TRUE@ dri2_glx.c \
-@HAVE_DRI2_TRUE@ dri2.h \
-@HAVE_DRI2_TRUE@ dri2_priv.h \
-@HAVE_DRI2_TRUE@ dri_glx.c \
-@HAVE_DRI2_TRUE@ dri_sarea.h \
-@HAVE_DRI2_TRUE@ XF86dri.c \
-@HAVE_DRI2_TRUE@ xf86dri.h \
-@HAVE_DRI2_TRUE@ xf86dristr.h
-
-@HAVE_DRI3_TRUE@am__append_4 = \
-@HAVE_DRI3_TRUE@ dri3_glx.c \
-@HAVE_DRI3_TRUE@ dri3_priv.h
-
-@HAVE_DRI3_TRUE@am__append_5 = $(top_builddir)/src/loader/libloader_dri3_helper.la
-@HAVE_APPLEDRI_TRUE@am__append_6 = \
-@HAVE_APPLEDRI_TRUE@ applegl_glx.c
-
-@HAVE_APPLEDRI_TRUE@am__append_7 = apple
-@HAVE_APPLEDRI_TRUE@am__append_8 = $(builddir)/apple/libappleglx.la
-@HAVE_WINDOWSDRI_TRUE@am__append_9 = \
-@HAVE_WINDOWSDRI_TRUE@ driwindows_glx.c
-
-@HAVE_WINDOWSDRI_TRUE@am__append_10 = windows
-@HAVE_WINDOWSDRI_TRUE@am__append_11 = \
-@HAVE_WINDOWSDRI_TRUE@ $(builddir)/windows/libwindowsdri.la \
-@HAVE_WINDOWSDRI_TRUE@ $(builddir)/windows/libwindowsglx.la
-
-@USE_LIBGLVND_TRUE@am__append_12 = \
-@USE_LIBGLVND_TRUE@ -DGL_LIB_NAME=\"lib@GL_LIB@.so\" \
-@USE_LIBGLVND_TRUE@ $(GLVND_CFLAGS)
-
-@USE_LIBGLVND_TRUE@am__append_13 = \
-@USE_LIBGLVND_TRUE@ g_glxglvnddispatchfuncs.c \
-@USE_LIBGLVND_TRUE@ g_glxglvnddispatchindices.h \
-@USE_LIBGLVND_TRUE@ glxglvnd.c \
-@USE_LIBGLVND_TRUE@ glxglvnd.h \
-@USE_LIBGLVND_TRUE@ glxglvnddispatchfuncs.h
-
-@USE_LIBGLVND_FALSE@am__append_14 = \
-@USE_LIBGLVND_FALSE@ -DGL_LIB_NAME=\"lib@GL_LIB@.so.1\"
-
-@HAVE_WINDOWSDRI_TRUE@am__append_15 = -lgdi32 -lopengl32 -Wl,--disable-stdcall-fixup
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
- $(top_srcdir)/bin/depcomp $(top_srcdir)/install-lib-links.mk
-subdir = src/glx
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
- $(top_srcdir)/m4/ax_check_gnu_make.m4 \
- $(top_srcdir)/m4/ax_check_python_mako_module.m4 \
- $(top_srcdir)/m4/ax_gcc_builtin.m4 \
- $(top_srcdir)/m4/ax_gcc_func_attribute.m4 \
- $(top_srcdir)/m4/ax_prog_bison.m4 \
- $(top_srcdir)/m4/ax_prog_flex.m4 \
- $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
- $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
- $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
- $(top_srcdir)/VERSION $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)"
-LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
-am__DEPENDENCIES_1 =
-am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) libglx.la \
- $(top_builddir)/src/mapi/glapi/libglapi.la \
- $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
- $(am__DEPENDENCIES_1)
-lib@GL_LIB@_la_DEPENDENCIES = $(am__DEPENDENCIES_2)
-am_lib@GL_LIB@_la_OBJECTS =
-lib@GL_LIB@_la_OBJECTS = $(am_lib@GL_LIB@_la_OBJECTS)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-lib@GL_LIB@_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(AM_CFLAGS) $(CFLAGS) $(lib@GL_LIB@_la_LDFLAGS) $(LDFLAGS) -o \
- $@
-libglx_la_DEPENDENCIES = $(top_builddir)/src/loader/libloader.la \
- $(top_builddir)/src/util/libmesautil.la \
- $(top_builddir)/src/util/libxmlconfig.la $(am__append_5) \
- $(am__append_8) $(am__append_11)
-am__libglx_la_SOURCES_DIST = clientattrib.c clientinfo.c compsize.c \
- create_context.c eval.c glxclient.h glxcmds.c glxconfig.c \
- glxconfig.h glxcurrent.c glx_error.c glx_error.h glxext.c \
- glxextensions.c glxextensions.h glxhash.c glxhash.h \
- glx_pbuffer.c glx_query.c indirect.c indirect_glx.c \
- indirect_init.c indirect_init.h indirect_size.c \
- indirect_texture_compression.c indirect_transpose_matrix.c \
- indirect_vertex_array.c indirect_vertex_array.h \
- indirect_vertex_array_priv.h indirect_vertex_program.c \
- indirect_window_pos.c packrender.h packsingle.h pixel.c \
- pixelstore.c query_renderer.c render2.c renderpix.c single2.c \
- singlepix.c vertarr.c drisw_glx.c drisw_priv.h dri_common.c \
- dri_common.h dri_common_query_renderer.c dri_common_interop.c \
- xfont.c dri2.c dri2_glx.c dri2.h dri2_priv.h dri_glx.c \
- dri_sarea.h XF86dri.c xf86dri.h xf86dristr.h dri3_glx.c \
- dri3_priv.h applegl_glx.c driwindows_glx.c \
- g_glxglvnddispatchfuncs.c g_glxglvnddispatchindices.h \
- glxglvnd.c glxglvnd.h glxglvnddispatchfuncs.h
-@HAVE_DRISW_TRUE@am__objects_1 = drisw_glx.lo
-@HAVE_DRICOMMON_TRUE@am__objects_2 = dri_common.lo \
-@HAVE_DRICOMMON_TRUE@ dri_common_query_renderer.lo \
-@HAVE_DRICOMMON_TRUE@ dri_common_interop.lo xfont.lo
-@HAVE_DRI2_TRUE@am__objects_3 = dri2.lo dri2_glx.lo dri_glx.lo \
-@HAVE_DRI2_TRUE@ XF86dri.lo
-@HAVE_DRI3_TRUE@am__objects_4 = dri3_glx.lo
-@HAVE_APPLEDRI_TRUE@am__objects_5 = applegl_glx.lo
-@HAVE_WINDOWSDRI_TRUE@am__objects_6 = driwindows_glx.lo
-@USE_LIBGLVND_TRUE@am__objects_7 = g_glxglvnddispatchfuncs.lo \
-@USE_LIBGLVND_TRUE@ glxglvnd.lo
-am_libglx_la_OBJECTS = clientattrib.lo clientinfo.lo compsize.lo \
- create_context.lo eval.lo glxcmds.lo glxconfig.lo \
- glxcurrent.lo glx_error.lo glxext.lo glxextensions.lo \
- glxhash.lo glx_pbuffer.lo glx_query.lo indirect.lo \
- indirect_glx.lo indirect_init.lo indirect_size.lo \
- indirect_texture_compression.lo indirect_transpose_matrix.lo \
- indirect_vertex_array.lo indirect_vertex_program.lo \
- indirect_window_pos.lo pixel.lo pixelstore.lo \
- query_renderer.lo render2.lo renderpix.lo single2.lo \
- singlepix.lo vertarr.lo $(am__objects_1) $(am__objects_2) \
- $(am__objects_3) $(am__objects_4) $(am__objects_5) \
- $(am__objects_6) $(am__objects_7)
-libglx_la_OBJECTS = $(am_libglx_la_OBJECTS)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@
-depcomp = $(SHELL) $(top_srcdir)/bin/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(lib@GL_LIB@_la_SOURCES) $(libglx_la_SOURCES)
-DIST_SOURCES = $(lib@GL_LIB@_la_SOURCES) $(am__libglx_la_SOURCES_DIST)
-RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
- html-recursive info-recursive install-data-recursive \
- install-dvi-recursive install-exec-recursive \
- install-html-recursive install-info-recursive \
- install-pdf-recursive install-ps-recursive install-recursive \
- installcheck-recursive installdirs-recursive pdf-recursive \
- ps-recursive uninstall-recursive
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
-AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
- $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
- distdir
-ETAGS = etags
-CTAGS = ctags
-DIST_SUBDIRS = apple windows . tests
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-am__relativize = \
- dir0=`pwd`; \
- sed_first='s,^\([^/]*\)/.*$$,\1,'; \
- sed_rest='s,^[^/]*/*,,'; \
- sed_last='s,^.*/\([^/]*\)$$,\1,'; \
- sed_butlast='s,/*[^/]*$$,,'; \
- while test -n "$$dir1"; do \
- first=`echo "$$dir1" | sed -e "$$sed_first"`; \
- if test "$$first" != "."; then \
- if test "$$first" = ".."; then \
- dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
- dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
- else \
- first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
- if test "$$first2" = "$$first"; then \
- dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
- else \
- dir2="../$$dir2"; \
- fi; \
- dir0="$$dir0"/"$$first"; \
- fi; \
- fi; \
- dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
- done; \
- reldir="$$dir2"
-ACLOCAL = @ACLOCAL@
-AMDGPU_CFLAGS = @AMDGPU_CFLAGS@
-AMDGPU_LIBS = @AMDGPU_LIBS@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-ANDROID_CFLAGS = @ANDROID_CFLAGS@
-ANDROID_LIBS = @ANDROID_LIBS@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BACKTRACE_CFLAGS = @BACKTRACE_CFLAGS@
-BACKTRACE_LIBS = @BACKTRACE_LIBS@
-BSYMBOLIC = @BSYMBOLIC@
-CC = @CC@
-CCAS = @CCAS@
-CCASDEPMODE = @CCASDEPMODE@
-CCASFLAGS = @CCASFLAGS@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CLANG_RESOURCE_DIR = @CLANG_RESOURCE_DIR@
-CLOCK_LIB = @CLOCK_LIB@
-CLOVER_STD_OVERRIDE = @CLOVER_STD_OVERRIDE@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXX11_CXXFLAGS = @CXX11_CXXFLAGS@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-D3D_DRIVER_INSTALL_DIR = @D3D_DRIVER_INSTALL_DIR@
-DEFINES = @DEFINES@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DLOPEN_LIBS = @DLOPEN_LIBS@
-DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
-DRI2PROTO_LIBS = @DRI2PROTO_LIBS@
-DRIGL_CFLAGS = @DRIGL_CFLAGS@
-DRIGL_LIBS = @DRIGL_LIBS@
-DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
-DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@
-DRI_LIB_DEPS = @DRI_LIB_DEPS@
-DRI_PC_REQ_PRIV = @DRI_PC_REQ_PRIV@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGL_CFLAGS = @EGL_CFLAGS@
-EGL_LIB_DEPS = @EGL_LIB_DEPS@
-EGL_NATIVE_PLATFORM = @EGL_NATIVE_PLATFORM@
-EGREP = @EGREP@
-ETNAVIV_CFLAGS = @ETNAVIV_CFLAGS@
-ETNAVIV_LIBS = @ETNAVIV_LIBS@
-EXEEXT = @EXEEXT@
-EXPAT_CFLAGS = @EXPAT_CFLAGS@
-EXPAT_LIBS = @EXPAT_LIBS@
-FGREP = @FGREP@
-GALLIUM_PIPE_LOADER_DEFINES = @GALLIUM_PIPE_LOADER_DEFINES@
-GBM_PC_LIB_PRIV = @GBM_PC_LIB_PRIV@
-GBM_PC_REQ_PRIV = @GBM_PC_REQ_PRIV@
-GC_SECTIONS = @GC_SECTIONS@
-GLESv1_CM_LIB_DEPS = @GLESv1_CM_LIB_DEPS@
-GLESv1_CM_PC_LIB_PRIV = @GLESv1_CM_PC_LIB_PRIV@
-GLESv2_LIB_DEPS = @GLESv2_LIB_DEPS@
-GLESv2_PC_LIB_PRIV = @GLESv2_PC_LIB_PRIV@
-GLPROTO_CFLAGS = @GLPROTO_CFLAGS@
-GLPROTO_LIBS = @GLPROTO_LIBS@
-GLVND_CFLAGS = @GLVND_CFLAGS@
-GLVND_LIBS = @GLVND_LIBS@
-GLX_TLS = @GLX_TLS@
-GL_LIB = @GL_LIB@
-GL_LIB_DEPS = @GL_LIB_DEPS@
-GL_PC_CFLAGS = @GL_PC_CFLAGS@
-GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
-GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
-GL_PKGCONF_LIB = @GL_PKGCONF_LIB@
-GREP = @GREP@
-I915_CFLAGS = @I915_CFLAGS@
-I915_LIBS = @I915_LIBS@
-INDENT = @INDENT@
-INDENT_FLAGS = @INDENT_FLAGS@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LD_BUILD_ID = @LD_BUILD_ID@
-LD_NO_UNDEFINED = @LD_NO_UNDEFINED@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBATOMIC_LIBS = @LIBATOMIC_LIBS@
-LIBCLC_INCLUDEDIR = @LIBCLC_INCLUDEDIR@
-LIBCLC_LIBEXECDIR = @LIBCLC_LIBEXECDIR@
-LIBDRM_CFLAGS = @LIBDRM_CFLAGS@
-LIBDRM_LIBS = @LIBDRM_LIBS@
-LIBELF_CFLAGS = @LIBELF_CFLAGS@
-LIBELF_LIBS = @LIBELF_LIBS@
-LIBGLVND_DATADIR = @LIBGLVND_DATADIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBSENSORS_LIBS = @LIBSENSORS_LIBS@
-LIBTOOL = @LIBTOOL@
-LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@
-LIBUNWIND_LIBS = @LIBUNWIND_LIBS@
-LIB_DIR = @LIB_DIR@
-LIB_EXT = @LIB_EXT@
-LIPO = @LIPO@
-LLVM_CFLAGS = @LLVM_CFLAGS@
-LLVM_CONFIG = @LLVM_CONFIG@
-LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
-LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
-LLVM_LDFLAGS = @LLVM_LDFLAGS@
-LLVM_LIBS = @LLVM_LIBS@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-MSVC2013_COMPAT_CFLAGS = @MSVC2013_COMPAT_CFLAGS@
-MSVC2013_COMPAT_CXXFLAGS = @MSVC2013_COMPAT_CXXFLAGS@
-NINE_MAJOR = @NINE_MAJOR@
-NINE_MINOR = @NINE_MINOR@
-NINE_PATCH = @NINE_PATCH@
-NINE_VERSION = @NINE_VERSION@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NOUVEAU_CFLAGS = @NOUVEAU_CFLAGS@
-NOUVEAU_LIBS = @NOUVEAU_LIBS@
-NVVIEUX_CFLAGS = @NVVIEUX_CFLAGS@
-NVVIEUX_LIBS = @NVVIEUX_LIBS@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OMX_BELLAGIO_CFLAGS = @OMX_BELLAGIO_CFLAGS@
-OMX_BELLAGIO_LIBS = @OMX_BELLAGIO_LIBS@
-OMX_BELLAGIO_LIB_INSTALL_DIR = @OMX_BELLAGIO_LIB_INSTALL_DIR@
-OMX_TIZONIA_CFLAGS = @OMX_TIZONIA_CFLAGS@
-OMX_TIZONIA_LIBS = @OMX_TIZONIA_LIBS@
-OMX_TIZONIA_LIB_INSTALL_DIR = @OMX_TIZONIA_LIB_INSTALL_DIR@
-OPENCL_LIBNAME = @OPENCL_LIBNAME@
-OPENCL_VERSION = @OPENCL_VERSION@
-OSMESA_LIB = @OSMESA_LIB@
-OSMESA_LIB_DEPS = @OSMESA_LIB_DEPS@
-OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
-OSMESA_PC_REQ = @OSMESA_PC_REQ@
-OSMESA_VERSION = @OSMESA_VERSION@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PKG_CONFIG = @PKG_CONFIG@
-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
-POSIX_SHELL = @POSIX_SHELL@
-PTHREADSTUBS_CFLAGS = @PTHREADSTUBS_CFLAGS@
-PTHREADSTUBS_LIBS = @PTHREADSTUBS_LIBS@
-PTHREAD_CC = @PTHREAD_CC@
-PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-PWR8_CFLAGS = @PWR8_CFLAGS@
-PYTHON = @PYTHON@
-PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
-PYTHON_PLATFORM = @PYTHON_PLATFORM@
-PYTHON_PREFIX = @PYTHON_PREFIX@
-PYTHON_VERSION = @PYTHON_VERSION@
-RADEON_CFLAGS = @RADEON_CFLAGS@
-RADEON_LIBS = @RADEON_LIBS@
-RANLIB = @RANLIB@
-RM = @RM@
-SCANNER_ARG = @SCANNER_ARG@
-SED = @SED@
-SELINUX_CFLAGS = @SELINUX_CFLAGS@
-SELINUX_LIBS = @SELINUX_LIBS@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIMPENROSE_CFLAGS = @SIMPENROSE_CFLAGS@
-SIMPENROSE_LIBS = @SIMPENROSE_LIBS@
-SSE41_CFLAGS = @SSE41_CFLAGS@
-STRIP = @STRIP@
-SWR_AVX2_CXXFLAGS = @SWR_AVX2_CXXFLAGS@
-SWR_AVX_CXXFLAGS = @SWR_AVX_CXXFLAGS@
-SWR_KNL_CXXFLAGS = @SWR_KNL_CXXFLAGS@
-SWR_SKX_CXXFLAGS = @SWR_SKX_CXXFLAGS@
-V3D_SIMULATOR_CFLAGS = @V3D_SIMULATOR_CFLAGS@
-V3D_SIMULATOR_LIBS = @V3D_SIMULATOR_LIBS@
-VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
-VALGRIND_LIBS = @VALGRIND_LIBS@
-VA_CFLAGS = @VA_CFLAGS@
-VA_LIBS = @VA_LIBS@
-VA_LIB_INSTALL_DIR = @VA_LIB_INSTALL_DIR@
-VA_MAJOR = @VA_MAJOR@
-VA_MINOR = @VA_MINOR@
-VC4_CFLAGS = @VC4_CFLAGS@
-VC4_LIBS = @VC4_LIBS@
-VDPAU_CFLAGS = @VDPAU_CFLAGS@
-VDPAU_LIBS = @VDPAU_LIBS@
-VDPAU_LIB_INSTALL_DIR = @VDPAU_LIB_INSTALL_DIR@
-VDPAU_MAJOR = @VDPAU_MAJOR@
-VDPAU_MINOR = @VDPAU_MINOR@
-VERSION = @VERSION@
-VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
-VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
-VL_CFLAGS = @VL_CFLAGS@
-VL_LIBS = @VL_LIBS@
-VULKAN_ICD_INSTALL_DIR = @VULKAN_ICD_INSTALL_DIR@
-WAYLAND_CLIENT_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
-WAYLAND_CLIENT_LIBS = @WAYLAND_CLIENT_LIBS@
-WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@
-WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@
-WAYLAND_PROTOCOLS_CFLAGS = @WAYLAND_PROTOCOLS_CFLAGS@
-WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@
-WAYLAND_PROTOCOLS_LIBS = @WAYLAND_PROTOCOLS_LIBS@
-WAYLAND_SCANNER = @WAYLAND_SCANNER@
-WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
-WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
-WAYLAND_SERVER_CFLAGS = @WAYLAND_SERVER_CFLAGS@
-WAYLAND_SERVER_LIBS = @WAYLAND_SERVER_LIBS@
-WNO_OVERRIDE_INIT = @WNO_OVERRIDE_INIT@
-X11_INCLUDES = @X11_INCLUDES@
-XA_MAJOR = @XA_MAJOR@
-XA_MINOR = @XA_MINOR@
-XA_PATCH = @XA_PATCH@
-XA_VERSION = @XA_VERSION@
-XCB_DRI2_CFLAGS = @XCB_DRI2_CFLAGS@
-XCB_DRI2_LIBS = @XCB_DRI2_LIBS@
-XCB_DRI3_CFLAGS = @XCB_DRI3_CFLAGS@
-XCB_DRI3_LIBS = @XCB_DRI3_LIBS@
-XCB_DRI3_MODIFIERS_CFLAGS = @XCB_DRI3_MODIFIERS_CFLAGS@
-XCB_DRI3_MODIFIERS_LIBS = @XCB_DRI3_MODIFIERS_LIBS@
-XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@
-XCB_RANDR_LIBS = @XCB_RANDR_LIBS@
-XLIBGL_CFLAGS = @XLIBGL_CFLAGS@
-XLIBGL_LIBS = @XLIBGL_LIBS@
-XLIB_RANDR_CFLAGS = @XLIB_RANDR_CFLAGS@
-XLIB_RANDR_LIBS = @XLIB_RANDR_LIBS@
-XVMC_CFLAGS = @XVMC_CFLAGS@
-XVMC_LIBS = @XVMC_LIBS@
-XVMC_LIB_INSTALL_DIR = @XVMC_LIB_INSTALL_DIR@
-XVMC_MAJOR = @XVMC_MAJOR@
-XVMC_MINOR = @XVMC_MINOR@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-ZLIB_CFLAGS = @ZLIB_CFLAGS@
-ZLIB_LIBS = @ZLIB_LIBS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-acv_mako_found = @acv_mako_found@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-ax_pthread_config = @ax_pthread_config@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-ifGNUmake = @ifGNUmake@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-pkgpyexecdir = @pkgpyexecdir@
-pkgpythondir = @pkgpythondir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-pyexecdir = @pyexecdir@
-pythondir = @pythondir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-SUBDIRS = $(am__append_7) $(am__append_10) . tests
-EXTRA_DIST = SConscript meson.build
-AM_CFLAGS = -I$(top_srcdir)/include \
- -I$(top_srcdir)/include/GL/internal -I$(top_srcdir)/src \
- -I$(top_srcdir)/src/loader -I$(top_builddir)/src/mapi \
- -I$(top_srcdir)/src/mapi -I$(top_builddir)/src/mapi/glapi \
- -I$(top_srcdir)/src/mapi/glapi $(VISIBILITY_CFLAGS) \
- -D_REENTRANT $(DEFINES) $(LIBDRM_CFLAGS) $(DRI2PROTO_CFLAGS) \
- $(GLPROTO_CFLAGS) $(X11_INCLUDES) $(am__append_12) \
- $(am__append_14)
-lib_LTLIBRARIES = lib@GL_LIB@.la
-noinst_LTLIBRARIES = libglx.la
-libglx_la_SOURCES = clientattrib.c clientinfo.c compsize.c \
- create_context.c eval.c glxclient.h glxcmds.c glxconfig.c \
- glxconfig.h glxcurrent.c glx_error.c glx_error.h glxext.c \
- glxextensions.c glxextensions.h glxhash.c glxhash.h \
- glx_pbuffer.c glx_query.c indirect.c indirect_glx.c \
- indirect_init.c indirect_init.h indirect_size.c \
- indirect_texture_compression.c indirect_transpose_matrix.c \
- indirect_vertex_array.c indirect_vertex_array.h \
- indirect_vertex_array_priv.h indirect_vertex_program.c \
- indirect_window_pos.c packrender.h packsingle.h pixel.c \
- pixelstore.c query_renderer.c render2.c renderpix.c single2.c \
- singlepix.c vertarr.c $(am__append_1) $(am__append_2) \
- $(am__append_3) $(am__append_4) $(am__append_6) \
- $(am__append_9) $(am__append_13)
-libglx_la_LIBADD = $(top_builddir)/src/loader/libloader.la \
- $(top_builddir)/src/util/libmesautil.la \
- $(top_builddir)/src/util/libxmlconfig.la $(am__append_5) \
- $(am__append_8) $(am__append_11)
-@USE_LIBGLVND_FALSE@GL_LIB_VERSION = 1:2
-@USE_LIBGLVND_TRUE@GL_LIB_VERSION = 0
-
-# Push the libdrm furhter up, as due to libtool bug we might end up relinking
-# against the system one.
-GL_LIBS = \
- $(LIBDRM_LIBS) \
- libglx.la \
- $(top_builddir)/src/mapi/glapi/libglapi.la \
- $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
- $(GL_LIB_DEPS)
-
-GL_LDFLAGS = \
- -no-undefined \
- -version-number $(GL_LIB_VERSION) \
- $(BSYMBOLIC) \
- $(GC_SECTIONS) \
- $(LD_NO_UNDEFINED)
-
-lib@GL_LIB@_la_SOURCES =
-lib@GL_LIB@_la_LIBADD = $(GL_LIBS)
-lib@GL_LIB@_la_LDFLAGS = $(GL_LDFLAGS) $(am__append_15)
-all: all-recursive
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/install-lib-links.mk $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/glx/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign src/glx/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/install-lib-links.mk:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-libLTLIBRARIES: $(lib_LTLIBRARIES)
- @$(NORMAL_INSTALL)
- @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
- list2=; for p in $$list; do \
- if test -f $$p; then \
- list2="$$list2 $$p"; \
- else :; fi; \
- done; \
- test -z "$$list2" || { \
- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
- echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
- $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
- }
-
-uninstall-libLTLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
- for p in $$list; do \
- $(am__strip_dir) \
- echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
- $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
- done
-
-clean-libLTLIBRARIES:
- -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
- @list='$(lib_LTLIBRARIES)'; \
- locs=`for p in $$list; do echo $$p; done | \
- sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
- sort -u`; \
- test -z "$$locs" || { \
- echo rm -f $${locs}; \
- rm -f $${locs}; \
- }
-
-clean-noinstLTLIBRARIES:
- -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
- @list='$(noinst_LTLIBRARIES)'; \
- locs=`for p in $$list; do echo $$p; done | \
- sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
- sort -u`; \
- test -z "$$locs" || { \
- echo rm -f $${locs}; \
- rm -f $${locs}; \
- }
-lib@GL_LIB@.la: $(lib@GL_LIB@_la_OBJECTS) $(lib@GL_LIB@_la_DEPENDENCIES) $(EXTRA_lib@GL_LIB@_la_DEPENDENCIES)
- $(AM_V_CCLD)$(lib@GL_LIB@_la_LINK) -rpath $(libdir) $(lib@GL_LIB@_la_OBJECTS) $(lib@GL_LIB@_la_LIBADD) $(LIBS)
-libglx.la: $(libglx_la_OBJECTS) $(libglx_la_DEPENDENCIES) $(EXTRA_libglx_la_DEPENDENCIES)
- $(AM_V_CCLD)$(LINK) $(libglx_la_OBJECTS) $(libglx_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/XF86dri.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/applegl_glx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clientattrib.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clientinfo.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compsize.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_context.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dri2.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dri2_glx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dri3_glx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dri_common.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dri_common_interop.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dri_common_query_renderer.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dri_glx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drisw_glx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/driwindows_glx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eval.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g_glxglvnddispatchfuncs.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glx_error.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glx_pbuffer.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glx_query.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glxcmds.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glxconfig.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glxcurrent.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glxext.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glxextensions.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glxglvnd.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glxhash.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect_glx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect_init.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect_size.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect_texture_compression.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect_transpose_matrix.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect_vertex_array.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect_vertex_program.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect_window_pos.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pixel.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pixelstore.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/query_renderer.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/render2.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/renderpix.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/single2.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/singlepix.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vertarr.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfont.Plo@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
-@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run 'make' without going through this Makefile.
-# To change the values of 'make' variables: instead of editing Makefiles,
-# (1) if the variable is set in 'config.status', edit 'config.status'
-# (which will cause the Makefiles to be regenerated when you run 'make');
-# (2) otherwise, pass the desired values on the 'make' command line.
-$(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS):
- @fail= failcom='exit 1'; \
- for f in x $$MAKEFLAGS; do \
- case $$f in \
- *=* | --[!k]*);; \
- *k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- target=`echo $@ | sed s/-recursive//`; \
- case "$@" in \
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
- *) list='$(SUBDIRS)' ;; \
- esac; \
- for subdir in $$list; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- dot_seen=yes; \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done; \
- if test "$$dot_seen" = "no"; then \
- $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
- fi; test -z "$$fail"
-tags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
- done
-ctags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
- done
-cscopelist-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
- done
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- set x; \
- here=`pwd`; \
- if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
- include_option=--etags-include; \
- empty_fix=.; \
- else \
- include_option=--include; \
- empty_fix=; \
- fi; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test ! -f $$subdir/TAGS || \
- set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
- fi; \
- done; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: CTAGS
-CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-
-cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
- list='$(SOURCES) $(HEADERS) $(LISP)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- $(am__make_dryrun) \
- || test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
- $(am__relativize); \
- new_distdir=$$reldir; \
- dir1=$$subdir; dir2="$(top_distdir)"; \
- $(am__relativize); \
- new_top_distdir=$$reldir; \
- echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
- echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
- ($(am__cd) $$subdir && \
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$$new_top_distdir" \
- distdir="$$new_distdir" \
- am__remove_distdir=: \
- am__skip_length_check=: \
- am__skip_mode_fix=: \
- distdir) \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-recursive
-@BUILD_SHARED_FALSE@all-local:
-@HAVE_COMPAT_SYMLINKS_FALSE@all-local:
-all-am: Makefile $(LTLIBRARIES) all-local
-installdirs: installdirs-recursive
-installdirs-am:
- for dir in "$(DESTDIR)$(libdir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-@BUILD_SHARED_FALSE@clean-local:
-@HAVE_COMPAT_SYMLINKS_FALSE@clean-local:
-clean: clean-recursive
-
-clean-am: clean-generic clean-libLTLIBRARIES clean-libtool clean-local \
- clean-noinstLTLIBRARIES mostlyclean-am
-
-distclean: distclean-recursive
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-html-am:
-
-info: info-recursive
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-recursive
-
-install-dvi-am:
-
-install-exec-am: install-libLTLIBRARIES
-
-install-html: install-html-recursive
-
-install-html-am:
-
-install-info: install-info-recursive
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-pdf-am:
-
-install-ps: install-ps-recursive
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am: uninstall-libLTLIBRARIES
-
-.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \
- cscopelist-recursive ctags-recursive install-am install-strip \
- tags-recursive
-
-.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
- all all-am all-local check check-am clean clean-generic \
- clean-libLTLIBRARIES clean-libtool clean-local \
- clean-noinstLTLIBRARIES cscopelist cscopelist-recursive ctags \
- ctags-recursive distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-libLTLIBRARIES install-man install-pdf \
- install-pdf-am install-ps install-ps-am install-strip \
- installcheck installcheck-am installdirs installdirs-am \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
- pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
- uninstall-libLTLIBRARIES
-
-
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@all-local : .install-mesa-links
-
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@.install-mesa-links : $(lib_LTLIBRARIES)
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ $(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ for f in $(join $(addsuffix .libs/,$(dir $(lib_LTLIBRARIES))),$(notdir $(lib_LTLIBRARIES:%.la=%.$(LIB_EXT)*))); do \
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ if test -h .libs/$$f; then \
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ cp -d $$f $(top_builddir)/$(LIB_DIR); \
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ else \
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ ln -f $$f $(top_builddir)/$(LIB_DIR); \
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ fi; \
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ done && touch $@
-
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@clean-local:
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ for f in $(notdir $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)); do \
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ $(RM) $(top_builddir)/$(LIB_DIR)/$$f; \
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ done;
-@BUILD_SHARED_TRUE@@HAVE_COMPAT_SYMLINKS_TRUE@ $(RM) .install-mesa-links
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/lib/mesa/src/glx/apple/Makefile.am b/lib/mesa/src/glx/apple/Makefile.am
deleted file mode 100644
index 8f9326863..000000000
--- a/lib/mesa/src/glx/apple/Makefile.am
+++ /dev/null
@@ -1,46 +0,0 @@
-EXTRA_DIST = \
- RELEASE_NOTES \
- meson.build
-
-noinst_LTLIBRARIES = libappleglx.la
-
-AM_CFLAGS = \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/glx \
- -I$(top_builddir)/src/mesa \
- -I$(top_srcdir)/src/mesa \
- -I$(top_srcdir)/src/mapi \
- -I$(top_builddir)/src/mapi/glapi \
- -I$(top_srcdir)/src/mapi/glapi \
- $(VISIBILITY_CFLAGS) \
- $(DEFINES) \
- $(X11_INCLUDES)
-
-libappleglx_la_SOURCES = \
- apple_cgl.c \
- apple_cgl.h \
- appledri.c \
- appledri.h \
- appledristr.h \
- apple_glapi.c \
- apple_glx.c \
- apple_glx_context.c \
- apple_glx_context.h \
- apple_glx_drawable.c \
- apple_glx_drawable.h \
- apple_glx.h \
- apple_glx_log.c \
- apple_glx_log.h \
- apple_glx_pbuffer.c \
- apple_glx_pixmap.c \
- apple_glx_surface.c \
- apple_visual.c \
- apple_visual.h \
- apple_xgl_api.h \
- apple_xgl_api_read.c \
- apple_xgl_api_stereo.c \
- apple_xgl_api_viewport.c \
- glx_empty.c
-
-libappleglx_la_LDFLAGS = -lXplugin -framework ApplicationServices -framework CoreFoundation
diff --git a/lib/mesa/src/glx/apple/Makefile.in b/lib/mesa/src/glx/apple/Makefile.in
deleted file mode 100644
index e415f224c..000000000
--- a/lib/mesa/src/glx/apple/Makefile.in
+++ /dev/null
@@ -1,820 +0,0 @@
-# Makefile.in generated by automake 1.12.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2012 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__make_dryrun = \
- { \
- am__dry=no; \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
- | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
- *) \
- for am__flg in $$MAKEFLAGS; do \
- case $$am__flg in \
- *=*|--*) ;; \
- *n*) am__dry=yes; break;; \
- esac; \
- done;; \
- esac; \
- test $$am__dry = yes; \
- }
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = src/glx/apple
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
- $(top_srcdir)/bin/depcomp TODO
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
- $(top_srcdir)/m4/ax_check_gnu_make.m4 \
- $(top_srcdir)/m4/ax_check_python_mako_module.m4 \
- $(top_srcdir)/m4/ax_gcc_builtin.m4 \
- $(top_srcdir)/m4/ax_gcc_func_attribute.m4 \
- $(top_srcdir)/m4/ax_prog_bison.m4 \
- $(top_srcdir)/m4/ax_prog_flex.m4 \
- $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
- $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
- $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
- $(top_srcdir)/VERSION $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LTLIBRARIES = $(noinst_LTLIBRARIES)
-libappleglx_la_LIBADD =
-am_libappleglx_la_OBJECTS = apple_cgl.lo appledri.lo apple_glapi.lo \
- apple_glx.lo apple_glx_context.lo apple_glx_drawable.lo \
- apple_glx_log.lo apple_glx_pbuffer.lo apple_glx_pixmap.lo \
- apple_glx_surface.lo apple_visual.lo apple_xgl_api_read.lo \
- apple_xgl_api_stereo.lo apple_xgl_api_viewport.lo glx_empty.lo
-libappleglx_la_OBJECTS = $(am_libappleglx_la_OBJECTS)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-libappleglx_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(AM_CFLAGS) $(CFLAGS) $(libappleglx_la_LDFLAGS) $(LDFLAGS) -o \
- $@
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@
-depcomp = $(SHELL) $(top_srcdir)/bin/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libappleglx_la_SOURCES)
-DIST_SOURCES = $(libappleglx_la_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMDGPU_CFLAGS = @AMDGPU_CFLAGS@
-AMDGPU_LIBS = @AMDGPU_LIBS@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-ANDROID_CFLAGS = @ANDROID_CFLAGS@
-ANDROID_LIBS = @ANDROID_LIBS@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BACKTRACE_CFLAGS = @BACKTRACE_CFLAGS@
-BACKTRACE_LIBS = @BACKTRACE_LIBS@
-BSYMBOLIC = @BSYMBOLIC@
-CC = @CC@
-CCAS = @CCAS@
-CCASDEPMODE = @CCASDEPMODE@
-CCASFLAGS = @CCASFLAGS@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CLANG_RESOURCE_DIR = @CLANG_RESOURCE_DIR@
-CLOCK_LIB = @CLOCK_LIB@
-CLOVER_STD_OVERRIDE = @CLOVER_STD_OVERRIDE@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXX11_CXXFLAGS = @CXX11_CXXFLAGS@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-D3D_DRIVER_INSTALL_DIR = @D3D_DRIVER_INSTALL_DIR@
-DEFINES = @DEFINES@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DLOPEN_LIBS = @DLOPEN_LIBS@
-DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
-DRI2PROTO_LIBS = @DRI2PROTO_LIBS@
-DRIGL_CFLAGS = @DRIGL_CFLAGS@
-DRIGL_LIBS = @DRIGL_LIBS@
-DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
-DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@
-DRI_LIB_DEPS = @DRI_LIB_DEPS@
-DRI_PC_REQ_PRIV = @DRI_PC_REQ_PRIV@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGL_CFLAGS = @EGL_CFLAGS@
-EGL_LIB_DEPS = @EGL_LIB_DEPS@
-EGL_NATIVE_PLATFORM = @EGL_NATIVE_PLATFORM@
-EGREP = @EGREP@
-ETNAVIV_CFLAGS = @ETNAVIV_CFLAGS@
-ETNAVIV_LIBS = @ETNAVIV_LIBS@
-EXEEXT = @EXEEXT@
-EXPAT_CFLAGS = @EXPAT_CFLAGS@
-EXPAT_LIBS = @EXPAT_LIBS@
-FGREP = @FGREP@
-GALLIUM_PIPE_LOADER_DEFINES = @GALLIUM_PIPE_LOADER_DEFINES@
-GBM_PC_LIB_PRIV = @GBM_PC_LIB_PRIV@
-GBM_PC_REQ_PRIV = @GBM_PC_REQ_PRIV@
-GC_SECTIONS = @GC_SECTIONS@
-GLESv1_CM_LIB_DEPS = @GLESv1_CM_LIB_DEPS@
-GLESv1_CM_PC_LIB_PRIV = @GLESv1_CM_PC_LIB_PRIV@
-GLESv2_LIB_DEPS = @GLESv2_LIB_DEPS@
-GLESv2_PC_LIB_PRIV = @GLESv2_PC_LIB_PRIV@
-GLPROTO_CFLAGS = @GLPROTO_CFLAGS@
-GLPROTO_LIBS = @GLPROTO_LIBS@
-GLVND_CFLAGS = @GLVND_CFLAGS@
-GLVND_LIBS = @GLVND_LIBS@
-GLX_TLS = @GLX_TLS@
-GL_LIB = @GL_LIB@
-GL_LIB_DEPS = @GL_LIB_DEPS@
-GL_PC_CFLAGS = @GL_PC_CFLAGS@
-GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
-GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
-GL_PKGCONF_LIB = @GL_PKGCONF_LIB@
-GREP = @GREP@
-I915_CFLAGS = @I915_CFLAGS@
-I915_LIBS = @I915_LIBS@
-INDENT = @INDENT@
-INDENT_FLAGS = @INDENT_FLAGS@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LD_BUILD_ID = @LD_BUILD_ID@
-LD_NO_UNDEFINED = @LD_NO_UNDEFINED@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBATOMIC_LIBS = @LIBATOMIC_LIBS@
-LIBCLC_INCLUDEDIR = @LIBCLC_INCLUDEDIR@
-LIBCLC_LIBEXECDIR = @LIBCLC_LIBEXECDIR@
-LIBDRM_CFLAGS = @LIBDRM_CFLAGS@
-LIBDRM_LIBS = @LIBDRM_LIBS@
-LIBELF_CFLAGS = @LIBELF_CFLAGS@
-LIBELF_LIBS = @LIBELF_LIBS@
-LIBGLVND_DATADIR = @LIBGLVND_DATADIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBSENSORS_LIBS = @LIBSENSORS_LIBS@
-LIBTOOL = @LIBTOOL@
-LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@
-LIBUNWIND_LIBS = @LIBUNWIND_LIBS@
-LIB_DIR = @LIB_DIR@
-LIB_EXT = @LIB_EXT@
-LIPO = @LIPO@
-LLVM_CFLAGS = @LLVM_CFLAGS@
-LLVM_CONFIG = @LLVM_CONFIG@
-LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
-LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
-LLVM_LDFLAGS = @LLVM_LDFLAGS@
-LLVM_LIBS = @LLVM_LIBS@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-MSVC2013_COMPAT_CFLAGS = @MSVC2013_COMPAT_CFLAGS@
-MSVC2013_COMPAT_CXXFLAGS = @MSVC2013_COMPAT_CXXFLAGS@
-NINE_MAJOR = @NINE_MAJOR@
-NINE_MINOR = @NINE_MINOR@
-NINE_PATCH = @NINE_PATCH@
-NINE_VERSION = @NINE_VERSION@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NOUVEAU_CFLAGS = @NOUVEAU_CFLAGS@
-NOUVEAU_LIBS = @NOUVEAU_LIBS@
-NVVIEUX_CFLAGS = @NVVIEUX_CFLAGS@
-NVVIEUX_LIBS = @NVVIEUX_LIBS@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OMX_BELLAGIO_CFLAGS = @OMX_BELLAGIO_CFLAGS@
-OMX_BELLAGIO_LIBS = @OMX_BELLAGIO_LIBS@
-OMX_BELLAGIO_LIB_INSTALL_DIR = @OMX_BELLAGIO_LIB_INSTALL_DIR@
-OMX_TIZONIA_CFLAGS = @OMX_TIZONIA_CFLAGS@
-OMX_TIZONIA_LIBS = @OMX_TIZONIA_LIBS@
-OMX_TIZONIA_LIB_INSTALL_DIR = @OMX_TIZONIA_LIB_INSTALL_DIR@
-OPENCL_LIBNAME = @OPENCL_LIBNAME@
-OPENCL_VERSION = @OPENCL_VERSION@
-OSMESA_LIB = @OSMESA_LIB@
-OSMESA_LIB_DEPS = @OSMESA_LIB_DEPS@
-OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
-OSMESA_PC_REQ = @OSMESA_PC_REQ@
-OSMESA_VERSION = @OSMESA_VERSION@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PKG_CONFIG = @PKG_CONFIG@
-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
-POSIX_SHELL = @POSIX_SHELL@
-PTHREADSTUBS_CFLAGS = @PTHREADSTUBS_CFLAGS@
-PTHREADSTUBS_LIBS = @PTHREADSTUBS_LIBS@
-PTHREAD_CC = @PTHREAD_CC@
-PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-PWR8_CFLAGS = @PWR8_CFLAGS@
-PYTHON = @PYTHON@
-PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
-PYTHON_PLATFORM = @PYTHON_PLATFORM@
-PYTHON_PREFIX = @PYTHON_PREFIX@
-PYTHON_VERSION = @PYTHON_VERSION@
-RADEON_CFLAGS = @RADEON_CFLAGS@
-RADEON_LIBS = @RADEON_LIBS@
-RANLIB = @RANLIB@
-RM = @RM@
-SCANNER_ARG = @SCANNER_ARG@
-SED = @SED@
-SELINUX_CFLAGS = @SELINUX_CFLAGS@
-SELINUX_LIBS = @SELINUX_LIBS@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIMPENROSE_CFLAGS = @SIMPENROSE_CFLAGS@
-SIMPENROSE_LIBS = @SIMPENROSE_LIBS@
-SSE41_CFLAGS = @SSE41_CFLAGS@
-STRIP = @STRIP@
-SWR_AVX2_CXXFLAGS = @SWR_AVX2_CXXFLAGS@
-SWR_AVX_CXXFLAGS = @SWR_AVX_CXXFLAGS@
-SWR_KNL_CXXFLAGS = @SWR_KNL_CXXFLAGS@
-SWR_SKX_CXXFLAGS = @SWR_SKX_CXXFLAGS@
-V3D_SIMULATOR_CFLAGS = @V3D_SIMULATOR_CFLAGS@
-V3D_SIMULATOR_LIBS = @V3D_SIMULATOR_LIBS@
-VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
-VALGRIND_LIBS = @VALGRIND_LIBS@
-VA_CFLAGS = @VA_CFLAGS@
-VA_LIBS = @VA_LIBS@
-VA_LIB_INSTALL_DIR = @VA_LIB_INSTALL_DIR@
-VA_MAJOR = @VA_MAJOR@
-VA_MINOR = @VA_MINOR@
-VC4_CFLAGS = @VC4_CFLAGS@
-VC4_LIBS = @VC4_LIBS@
-VDPAU_CFLAGS = @VDPAU_CFLAGS@
-VDPAU_LIBS = @VDPAU_LIBS@
-VDPAU_LIB_INSTALL_DIR = @VDPAU_LIB_INSTALL_DIR@
-VDPAU_MAJOR = @VDPAU_MAJOR@
-VDPAU_MINOR = @VDPAU_MINOR@
-VERSION = @VERSION@
-VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
-VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
-VL_CFLAGS = @VL_CFLAGS@
-VL_LIBS = @VL_LIBS@
-VULKAN_ICD_INSTALL_DIR = @VULKAN_ICD_INSTALL_DIR@
-WAYLAND_CLIENT_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
-WAYLAND_CLIENT_LIBS = @WAYLAND_CLIENT_LIBS@
-WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@
-WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@
-WAYLAND_PROTOCOLS_CFLAGS = @WAYLAND_PROTOCOLS_CFLAGS@
-WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@
-WAYLAND_PROTOCOLS_LIBS = @WAYLAND_PROTOCOLS_LIBS@
-WAYLAND_SCANNER = @WAYLAND_SCANNER@
-WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
-WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
-WAYLAND_SERVER_CFLAGS = @WAYLAND_SERVER_CFLAGS@
-WAYLAND_SERVER_LIBS = @WAYLAND_SERVER_LIBS@
-WNO_OVERRIDE_INIT = @WNO_OVERRIDE_INIT@
-X11_INCLUDES = @X11_INCLUDES@
-XA_MAJOR = @XA_MAJOR@
-XA_MINOR = @XA_MINOR@
-XA_PATCH = @XA_PATCH@
-XA_VERSION = @XA_VERSION@
-XCB_DRI2_CFLAGS = @XCB_DRI2_CFLAGS@
-XCB_DRI2_LIBS = @XCB_DRI2_LIBS@
-XCB_DRI3_CFLAGS = @XCB_DRI3_CFLAGS@
-XCB_DRI3_LIBS = @XCB_DRI3_LIBS@
-XCB_DRI3_MODIFIERS_CFLAGS = @XCB_DRI3_MODIFIERS_CFLAGS@
-XCB_DRI3_MODIFIERS_LIBS = @XCB_DRI3_MODIFIERS_LIBS@
-XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@
-XCB_RANDR_LIBS = @XCB_RANDR_LIBS@
-XLIBGL_CFLAGS = @XLIBGL_CFLAGS@
-XLIBGL_LIBS = @XLIBGL_LIBS@
-XLIB_RANDR_CFLAGS = @XLIB_RANDR_CFLAGS@
-XLIB_RANDR_LIBS = @XLIB_RANDR_LIBS@
-XVMC_CFLAGS = @XVMC_CFLAGS@
-XVMC_LIBS = @XVMC_LIBS@
-XVMC_LIB_INSTALL_DIR = @XVMC_LIB_INSTALL_DIR@
-XVMC_MAJOR = @XVMC_MAJOR@
-XVMC_MINOR = @XVMC_MINOR@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-ZLIB_CFLAGS = @ZLIB_CFLAGS@
-ZLIB_LIBS = @ZLIB_LIBS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-acv_mako_found = @acv_mako_found@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-ax_pthread_config = @ax_pthread_config@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-ifGNUmake = @ifGNUmake@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-pkgpyexecdir = @pkgpyexecdir@
-pkgpythondir = @pkgpythondir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-pyexecdir = @pyexecdir@
-pythondir = @pythondir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = \
- RELEASE_NOTES \
- meson.build
-
-noinst_LTLIBRARIES = libappleglx.la
-AM_CFLAGS = \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/glx \
- -I$(top_builddir)/src/mesa \
- -I$(top_srcdir)/src/mesa \
- -I$(top_srcdir)/src/mapi \
- -I$(top_builddir)/src/mapi/glapi \
- -I$(top_srcdir)/src/mapi/glapi \
- $(VISIBILITY_CFLAGS) \
- $(DEFINES) \
- $(X11_INCLUDES)
-
-libappleglx_la_SOURCES = \
- apple_cgl.c \
- apple_cgl.h \
- appledri.c \
- appledri.h \
- appledristr.h \
- apple_glapi.c \
- apple_glx.c \
- apple_glx_context.c \
- apple_glx_context.h \
- apple_glx_drawable.c \
- apple_glx_drawable.h \
- apple_glx.h \
- apple_glx_log.c \
- apple_glx_log.h \
- apple_glx_pbuffer.c \
- apple_glx_pixmap.c \
- apple_glx_surface.c \
- apple_visual.c \
- apple_visual.h \
- apple_xgl_api.h \
- apple_xgl_api_read.c \
- apple_xgl_api_stereo.c \
- apple_xgl_api_viewport.c \
- glx_empty.c
-
-libappleglx_la_LDFLAGS = -lXplugin -framework ApplicationServices -framework CoreFoundation
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/glx/apple/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign src/glx/apple/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLTLIBRARIES:
- -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
- @list='$(noinst_LTLIBRARIES)'; \
- locs=`for p in $$list; do echo $$p; done | \
- sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
- sort -u`; \
- test -z "$$locs" || { \
- echo rm -f $${locs}; \
- rm -f $${locs}; \
- }
-libappleglx.la: $(libappleglx_la_OBJECTS) $(libappleglx_la_DEPENDENCIES) $(EXTRA_libappleglx_la_DEPENDENCIES)
- $(AM_V_CCLD)$(libappleglx_la_LINK) $(libappleglx_la_OBJECTS) $(libappleglx_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_cgl.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_glapi.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_glx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_glx_context.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_glx_drawable.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_glx_log.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_glx_pbuffer.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_glx_pixmap.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_glx_surface.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_visual.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_xgl_api_read.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_xgl_api_stereo.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apple_xgl_api_viewport.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/appledri.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glx_empty.Plo@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
-@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- set x; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: CTAGS
-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-
-cscopelist: $(HEADERS) $(SOURCES) $(LISP)
- list='$(SOURCES) $(HEADERS) $(LISP)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LTLIBRARIES)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
- clean-libtool clean-noinstLTLIBRARIES cscopelist ctags \
- distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- tags uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/lib/mesa/src/glx/dri2_glx.c b/lib/mesa/src/glx/dri2_glx.c
index d8c5ba25f..d6a543c8d 100644
--- a/lib/mesa/src/glx/dri2_glx.c
+++ b/lib/mesa/src/glx/dri2_glx.c
@@ -263,6 +263,10 @@ dri2_create_context_attribs(struct glx_screen *base,
&api, &reset, &release, error))
goto error_exit;
+ if (!dri2_check_no_error(flags, shareList, major_ver, error)) {
+ goto error_exit;
+ }
+
/* Check the renderType value */
if (!validate_renderType_against_config(config_base, renderType))
goto error_exit;
@@ -314,6 +318,9 @@ dri2_create_context_attribs(struct glx_screen *base,
*/
pcp->base.renderType = renderType;
+ if (flags & __DRI_CTX_FLAG_NO_ERROR)
+ pcp->base.noError = GL_TRUE;
+
pcp->driContext =
(*psc->dri2->createContextAttribs) (psc->driScreen,
api,
@@ -1164,6 +1171,14 @@ dri2BindExtensions(struct dri2_screen *psc, struct glx_display * priv,
__glXEnableDirectExtension(&psc->base,
"GLX_ARB_create_context_robustness");
+ /* DRI2 version 3 is also required because
+ * GLX_ARB_create_context_no_error requires GLX_ARB_create_context.
+ */
+ if (psc->dri2->base.version >= 3
+ && strcmp(extensions[i]->name, __DRI2_NO_ERROR) == 0)
+ __glXEnableDirectExtension(&psc->base,
+ "GLX_ARB_create_context_no_error");
+
/* DRI2 version 3 is also required because GLX_MESA_query_renderer
* requires GLX_ARB_create_context_profile.
*/
diff --git a/lib/mesa/src/glx/dri3_glx.c b/lib/mesa/src/glx/dri3_glx.c
index d53fc87e2..a5cf0e3bf 100644
--- a/lib/mesa/src/glx/dri3_glx.c
+++ b/lib/mesa/src/glx/dri3_glx.c
@@ -211,9 +211,9 @@ dri3_bind_context(struct glx_context *context, struct glx_context *old,
return GLXBadContext;
if (dri_draw)
- (*psc->f->invalidate)(dri_draw);
+ psc->f->invalidate(dri_draw);
if (dri_read && dri_read != dri_draw)
- (*psc->f->invalidate)(dri_read);
+ psc->f->invalidate(dri_read);
return Success;
}
@@ -259,6 +259,10 @@ dri3_create_context_attribs(struct glx_screen *base,
&reset, &release, error))
goto error_exit;
+ if (!dri2_check_no_error(flags, shareList, major_ver, error)) {
+ goto error_exit;
+ }
+
/* Check the renderType value */
if (!validate_renderType_against_config(config_base, render_type))
goto error_exit;
@@ -303,6 +307,9 @@ dri3_create_context_attribs(struct glx_screen *base,
* GLX_CONTEXT_*_BIT values.
*/
ctx_attribs[num_ctx_attribs++] = flags;
+
+ if (flags & __DRI_CTX_FLAG_NO_ERROR)
+ pcp->base.noError = GL_TRUE;
}
pcp->driContext =
@@ -495,7 +502,7 @@ dri3_flush_front_buffer(__DRIdrawable *driDrawable, void *loaderPrivate)
loader_dri3_flush(draw, __DRI2_FLUSH_DRAWABLE, __DRI2_THROTTLE_FLUSHFRONT);
- (*psc->f->invalidate)(driDrawable);
+ psc->f->invalidate(driDrawable);
loader_dri3_wait_gl(draw);
}
@@ -675,7 +682,7 @@ dri3_bind_tex_image(Display * dpy,
if (pdraw != NULL) {
psc = (struct dri3_screen *) base->psc;
- (*psc->f->invalidate)(pdraw->loader_drawable.dri_drawable);
+ psc->f->invalidate(pdraw->loader_drawable.dri_drawable);
XSync(dpy, false);
@@ -779,6 +786,10 @@ dri3_bind_extensions(struct dri3_screen *psc, struct glx_display * priv,
__glXEnableDirectExtension(&psc->base,
"GLX_ARB_create_context_robustness");
+ if (strcmp(extensions[i]->name, __DRI2_NO_ERROR) == 0)
+ __glXEnableDirectExtension(&psc->base,
+ "GLX_ARB_create_context_no_error");
+
if (strcmp(extensions[i]->name, __DRI2_RENDERER_QUERY) == 0) {
psc->rendererQuery = (__DRI2rendererQueryExtension *) extensions[i];
__glXEnableDirectExtension(&psc->base, "GLX_MESA_query_renderer");
@@ -988,7 +999,7 @@ dri3_create_screen(int screen, struct glx_display * priv)
return &psc->base;
handle_error:
- CriticalErrorMessageF("failed to load driver: %s\n", driverName);
+ CriticalErrorMessageF("failed to load driver: %s\n", driverName ? driverName : "(null)");
if (configs)
glx_config_destroy_list(configs);
diff --git a/lib/mesa/src/glx/dri_common.c b/lib/mesa/src/glx/dri_common.c
index 838c9fc89..a5e914043 100644
--- a/lib/mesa/src/glx/dri_common.c
+++ b/lib/mesa/src/glx/dri_common.c
@@ -401,7 +401,7 @@ driReleaseDrawables(struct glx_context *gc)
if (pdraw->drawable == pdraw->xDrawable) {
pdraw->refcount --;
if (pdraw->refcount == 0) {
- (*pdraw->destroyDrawable)(pdraw);
+ pdraw->destroyDrawable(pdraw);
__glxHashDelete(priv->drawHash, gc->currentDrawable);
}
}
@@ -412,7 +412,7 @@ driReleaseDrawables(struct glx_context *gc)
if (pdraw->drawable == pdraw->xDrawable) {
pdraw->refcount --;
if (pdraw->refcount == 0) {
- (*pdraw->destroyDrawable)(pdraw);
+ pdraw->destroyDrawable(pdraw);
__glxHashDelete(priv->drawHash, gc->currentReadable);
}
}
@@ -431,6 +431,7 @@ dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
{
unsigned i;
bool got_profile = false;
+ int no_error = 0;
uint32_t profile;
*major_ver = 1;
@@ -463,6 +464,9 @@ dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
case GLX_CONTEXT_FLAGS_ARB:
*flags = attribs[i * 2 + 1];
break;
+ case GLX_CONTEXT_OPENGL_NO_ERROR_ARB:
+ no_error = attribs[i * 2 + 1];
+ break;
case GLX_CONTEXT_PROFILE_MASK_ARB:
profile = attribs[i * 2 + 1];
got_profile = true;
@@ -504,6 +508,10 @@ dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
}
}
+ if (no_error) {
+ *flags |= __DRI_CTX_FLAG_NO_ERROR;
+ }
+
if (!got_profile) {
if (*major_ver > 3 || (*major_ver == 3 && *minor_ver >= 2))
*api = __DRI_API_OPENGL_CORE;
@@ -544,7 +552,8 @@ dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
/* Unknown flag value.
*/
if (*flags & ~(__DRI_CTX_FLAG_DEBUG | __DRI_CTX_FLAG_FORWARD_COMPATIBLE
- | __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS)) {
+ | __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS
+ | __DRI_CTX_FLAG_NO_ERROR)) {
*error = __DRI_CTX_ERROR_UNKNOWN_FLAG;
return false;
}
@@ -569,4 +578,45 @@ dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
return true;
}
+_X_HIDDEN bool
+dri2_check_no_error(uint32_t flags, struct glx_context *share_context,
+ int major, unsigned *error)
+{
+ Bool noError = flags & __DRI_CTX_FLAG_NO_ERROR;
+
+ /* The KHR_no_error specs say:
+ *
+ * Requires OpenGL ES 2.0 or OpenGL 2.0.
+ */
+ if (noError && major < 2) {
+ *error = __DRI_CTX_ERROR_UNKNOWN_ATTRIBUTE;
+ return false;
+ }
+
+ /* The GLX_ARB_create_context_no_error specs say:
+ *
+ * BadMatch is generated if the value of GLX_CONTEXT_OPENGL_NO_ERROR_ARB
+ * used to create <share_context> does not match the value of
+ * GLX_CONTEXT_OPENGL_NO_ERROR_ARB for the context being created.
+ */
+ if (share_context && !!share_context->noError != !!noError) {
+ *error = __DRI_CTX_ERROR_BAD_FLAG;
+ return false;
+ }
+
+ /* The GLX_ARB_create_context_no_error specs say:
+ *
+ * BadMatch is generated if the GLX_CONTEXT_OPENGL_NO_ERROR_ARB is TRUE at
+ * the same time as a debug or robustness context is specified.
+ *
+ */
+ if (noError && ((flags & __DRI_CTX_FLAG_DEBUG) ||
+ (flags & __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS))) {
+ *error = __DRI_CTX_ERROR_BAD_FLAG;
+ return false;
+ }
+
+ return true;
+}
+
#endif /* GLX_DIRECT_RENDERING */
diff --git a/lib/mesa/src/glx/drisw_glx.c b/lib/mesa/src/glx/drisw_glx.c
index 48c03ca42..39b484b2d 100644
--- a/lib/mesa/src/glx/drisw_glx.c
+++ b/lib/mesa/src/glx/drisw_glx.c
@@ -73,11 +73,10 @@ handle_xerror(Display *dpy, XErrorEvent *event)
(void) dpy;
assert(xshm_opcode != -1);
- if (event->request_code != xshm_opcode ||
- event->minor_code != X_ShmAttach)
+ if (event->request_code != xshm_opcode)
return 0;
- xshm_error = 1;
+ xshm_error = event->error_code;
return 0;
}
@@ -87,6 +86,8 @@ XCreateDrawable(struct drisw_drawable * pdp, int shmid, Display * dpy)
if (pdp->ximage) {
XDestroyImage(pdp->ximage);
pdp->ximage = NULL;
+ if ((pdp->shminfo.shmid > 0) && (shmid != pdp->shminfo.shmid))
+ XShmDetach(dpy, &pdp->shminfo);
}
if (!xshm_error && shmid >= 0) {
@@ -599,6 +600,9 @@ drisw_create_context_attribs(struct glx_screen *base,
&api, &reset, &release, error))
return NULL;
+ if (!dri2_check_no_error(flags, shareList, major_ver, error))
+ return NULL;
+
/* Check the renderType value */
if (!validate_renderType_against_config(config_base, renderType)) {
return NULL;
@@ -641,6 +645,9 @@ drisw_create_context_attribs(struct glx_screen *base,
* GLX_CONTEXT_*_BIT values.
*/
ctx_attribs[num_ctx_attribs++] = flags;
+
+ if (flags & __DRI_CTX_FLAG_NO_ERROR)
+ pcp->base.noError = GL_TRUE;
}
pcp->base.renderType = renderType;
@@ -820,9 +827,27 @@ driswBindExtensions(struct drisw_screen *psc, const __DRIextension **extensions)
static int
check_xshm(Display *dpy)
{
+ int (*old_handler)(Display *, XErrorEvent *);
+
int ignore;
+ XShmSegmentInfo info = { 0, };
+
+ if (!XQueryExtension(dpy, "MIT-SHM", &xshm_opcode, &ignore, &ignore))
+ return False;
- return XQueryExtension(dpy, "MIT-SHM", &xshm_opcode, &ignore, &ignore);
+ old_handler = XSetErrorHandler(handle_xerror);
+ XShmDetach(dpy, &info);
+ XSync(dpy, False);
+ (void) XSetErrorHandler(old_handler);
+
+ /* BadRequest means we're a remote client. If we were local we'd
+ * expect BadValue since 'info' has an invalid segment name.
+ */
+ if (xshm_error == BadRequest)
+ return False;
+
+ xshm_error = 0;
+ return True;
}
static struct glx_screen *
diff --git a/lib/mesa/src/glx/g_glxglvnddispatchfuncs.c b/lib/mesa/src/glx/g_glxglvnddispatchfuncs.c
index 5b65afc86..0f02ed2d3 100644
--- a/lib/mesa/src/glx/g_glxglvnddispatchfuncs.c
+++ b/lib/mesa/src/glx/g_glxglvnddispatchfuncs.c
@@ -1,7 +1,3 @@
-/*
- * THIS FILE IS AUTOMATICALLY GENERATED BY gen_scrn_dispatch.pl
- * DO NOT EDIT!!
- */
#include <stdlib.h>
#include "glxclient.h"
@@ -122,13 +118,13 @@ static void dispatch_BindTexImageEXT(Display *dpy, GLXDrawable drawable,
if (pBindTexImageEXT == NULL)
return;
- (*pBindTexImageEXT)(dpy, drawable, buffer, attrib_list);
+ pBindTexImageEXT(dpy, drawable, buffer, attrib_list);
}
static GLXFBConfigSGIX *dispatch_ChooseFBConfigSGIX(Display *dpy, int screen,
- const int *attrib_list,
+ int *attrib_list,
int *nelements)
{
PFNGLXCHOOSEFBCONFIGSGIXPROC pChooseFBConfigSGIX;
@@ -143,7 +139,7 @@ static GLXFBConfigSGIX *dispatch_ChooseFBConfigSGIX(Display *dpy, int screen,
if (pChooseFBConfigSGIX == NULL)
return NULL;
- ret = (*pChooseFBConfigSGIX)(dpy, screen, attrib_list, nelements);
+ ret = pChooseFBConfigSGIX(dpy, screen, attrib_list, nelements);
if (AddFBConfigsMapping(dpy, ret, nelements, dd)) {
free(ret);
return NULL;
@@ -172,7 +168,7 @@ static GLXContext dispatch_CreateContextAttribsARB(Display *dpy,
if (pCreateContextAttribsARB == NULL)
return None;
- ret = (*pCreateContextAttribsARB)(dpy, config, share_list, direct, attrib_list);
+ ret = pCreateContextAttribsARB(dpy, config, share_list, direct, attrib_list);
if (AddContextMapping(dpy, ret, dd)) {
/* XXX: Call glXDestroyContext which lives in libglvnd. If we're not
* allowed to call it from here, should we extend __glXDispatchTableIndices ?
@@ -203,7 +199,7 @@ static GLXContext dispatch_CreateContextWithConfigSGIX(Display *dpy,
if (pCreateContextWithConfigSGIX == NULL)
return None;
- ret = (*pCreateContextWithConfigSGIX)(dpy, config, render_type, share_list, direct);
+ ret = pCreateContextWithConfigSGIX(dpy, config, render_type, share_list, direct);
if (AddContextMapping(dpy, ret, dd)) {
/* XXX: Call glXDestroyContext which lives in libglvnd. If we're not
* allowed to call it from here, should we extend __glXDispatchTableIndices ?
@@ -220,7 +216,7 @@ static GLXPbuffer dispatch_CreateGLXPbufferSGIX(Display *dpy,
GLXFBConfig config,
unsigned int width,
unsigned int height,
- const int *attrib_list)
+ int *attrib_list)
{
PFNGLXCREATEGLXPBUFFERSGIXPROC pCreateGLXPbufferSGIX;
__GLXvendorInfo *dd;
@@ -234,13 +230,13 @@ static GLXPbuffer dispatch_CreateGLXPbufferSGIX(Display *dpy,
if (pCreateGLXPbufferSGIX == NULL)
return None;
- ret = (*pCreateGLXPbufferSGIX)(dpy, config, width, height, attrib_list);
+ ret = pCreateGLXPbufferSGIX(dpy, config, width, height, attrib_list);
if (AddDrawableMapping(dpy, ret, dd)) {
PFNGLXDESTROYGLXPBUFFERSGIXPROC pDestroyGLXPbufferSGIX;
__FETCH_FUNCTION_PTR(DestroyGLXPbufferSGIX);
if (pDestroyGLXPbufferSGIX)
- (*pDestroyGLXPbufferSGIX)(dpy, ret);
+ pDestroyGLXPbufferSGIX(dpy, ret);
return None;
}
@@ -266,7 +262,7 @@ static GLXPixmap dispatch_CreateGLXPixmapWithConfigSGIX(Display *dpy,
if (pCreateGLXPixmapWithConfigSGIX == NULL)
return None;
- ret = (*pCreateGLXPixmapWithConfigSGIX)(dpy, config, pixmap);
+ ret = pCreateGLXPixmapWithConfigSGIX(dpy, config, pixmap);
if (AddDrawableMapping(dpy, ret, dd)) {
/* XXX: Call glXDestroyGLXPixmap which lives in libglvnd. If we're not
* allowed to call it from here, should we extend __glXDispatchTableIndices ?
@@ -292,7 +288,7 @@ static void dispatch_DestroyGLXPbufferSGIX(Display *dpy, GLXPbuffer pbuf)
if (pDestroyGLXPbufferSGIX == NULL)
return;
- (*pDestroyGLXPbufferSGIX)(dpy, pbuf);
+ pDestroyGLXPbufferSGIX(dpy, pbuf);
}
@@ -310,7 +306,7 @@ static GLXContextID dispatch_GetContextIDEXT(const GLXContext ctx)
if (pGetContextIDEXT == NULL)
return None;
- return (*pGetContextIDEXT)(ctx);
+ return pGetContextIDEXT(ctx);
}
@@ -331,7 +327,7 @@ static Display *dispatch_GetCurrentDisplayEXT(void)
if (pGetCurrentDisplayEXT == NULL)
return NULL;
- return (*pGetCurrentDisplayEXT)();
+ return pGetCurrentDisplayEXT();
}
@@ -365,7 +361,7 @@ static int dispatch_GetFBConfigAttribSGIX(Display *dpy, GLXFBConfigSGIX config,
if (pGetFBConfigAttribSGIX == NULL)
return GLX_NO_EXTENSION;
- return (*pGetFBConfigAttribSGIX)(dpy, config, attribute, value_return);
+ return pGetFBConfigAttribSGIX(dpy, config, attribute, value_return);
}
@@ -385,7 +381,7 @@ static GLXFBConfigSGIX dispatch_GetFBConfigFromVisualSGIX(Display *dpy,
if (pGetFBConfigFromVisualSGIX == NULL)
return NULL;
- ret = (*pGetFBConfigFromVisualSGIX)(dpy, vis);
+ ret = pGetFBConfigFromVisualSGIX(dpy, vis);
if (AddFBConfigMapping(dpy, ret, dd))
/* XXX: dealloc ret ? */
return NULL;
@@ -409,7 +405,7 @@ static void dispatch_GetSelectedEventSGIX(Display *dpy, GLXDrawable drawable,
if (pGetSelectedEventSGIX == NULL)
return;
- (*pGetSelectedEventSGIX)(dpy, drawable, mask);
+ pGetSelectedEventSGIX(dpy, drawable, mask);
}
@@ -430,7 +426,7 @@ static int dispatch_GetVideoSyncSGI(unsigned int *count)
if (pGetVideoSyncSGI == NULL)
return GLX_NO_EXTENSION;
- return (*pGetVideoSyncSGI)(count);
+ return pGetVideoSyncSGI(count);
}
@@ -449,7 +445,7 @@ static XVisualInfo *dispatch_GetVisualFromFBConfigSGIX(Display *dpy,
if (pGetVisualFromFBConfigSGIX == NULL)
return NULL;
- return (*pGetVisualFromFBConfigSGIX)(dpy, config);
+ return pGetVisualFromFBConfigSGIX(dpy, config);
}
@@ -468,7 +464,7 @@ static int dispatch_QueryContextInfoEXT(Display *dpy, GLXContext ctx,
if (pQueryContextInfoEXT == NULL)
return GLX_NO_EXTENSION;
- return (*pQueryContextInfoEXT)(dpy, ctx, attribute, value);
+ return pQueryContextInfoEXT(dpy, ctx, attribute, value);
}
@@ -487,7 +483,7 @@ static void dispatch_QueryGLXPbufferSGIX(Display *dpy, GLXPbuffer pbuf,
if (pQueryGLXPbufferSGIX == NULL)
return;
- (*pQueryGLXPbufferSGIX)(dpy, pbuf, attribute, value);
+ pQueryGLXPbufferSGIX(dpy, pbuf, attribute, value);
}
@@ -506,7 +502,7 @@ static void dispatch_ReleaseTexImageEXT(Display *dpy, GLXDrawable drawable,
if (pReleaseTexImageEXT == NULL)
return;
- (*pReleaseTexImageEXT)(dpy, drawable, buffer);
+ pReleaseTexImageEXT(dpy, drawable, buffer);
}
@@ -525,7 +521,7 @@ static void dispatch_SelectEventSGIX(Display *dpy, GLXDrawable drawable,
if (pSelectEventSGIX == NULL)
return;
- (*pSelectEventSGIX)(dpy, drawable, mask);
+ pSelectEventSGIX(dpy, drawable, mask);
}
@@ -546,7 +542,7 @@ static int dispatch_SwapIntervalSGI(int interval)
if (pSwapIntervalSGI == NULL)
return GLX_NO_EXTENSION;
- return (*pSwapIntervalSGI)(interval);
+ return pSwapIntervalSGI(interval);
}
@@ -568,7 +564,7 @@ static int dispatch_WaitVideoSyncSGI(int divisor, int remainder,
if (pWaitVideoSyncSGI == NULL)
return GLX_NO_EXTENSION;
- return (*pWaitVideoSyncSGI)(divisor, remainder, count);
+ return pWaitVideoSyncSGI(divisor, remainder, count);
}
@@ -587,7 +583,7 @@ static void dispatch_BindSwapBarrierSGIX(Display *dpy, GLXDrawable drawable,
if (pBindSwapBarrierSGIX == NULL)
return;
- (*pBindSwapBarrierSGIX)(dpy, drawable, barrier);
+ pBindSwapBarrierSGIX(dpy, drawable, barrier);
}
@@ -606,7 +602,7 @@ static void dispatch_CopySubBufferMESA(Display *dpy, GLXDrawable drawable,
if (pCopySubBufferMESA == NULL)
return;
- (*pCopySubBufferMESA)(dpy, drawable, x, y, width, height);
+ pCopySubBufferMESA(dpy, drawable, x, y, width, height);
}
@@ -627,7 +623,7 @@ static GLXPixmap dispatch_CreateGLXPixmapMESA(Display *dpy,
if (pCreateGLXPixmapMESA == NULL)
return None;
- ret = (*pCreateGLXPixmapMESA)(dpy, visinfo, pixmap, cmap);
+ ret = pCreateGLXPixmapMESA(dpy, visinfo, pixmap, cmap);
if (AddDrawableMapping(dpy, ret, dd)) {
/* XXX: Call glXDestroyGLXPixmap which lives in libglvnd. If we're not
* allowed to call it from here, should we extend __glXDispatchTableIndices ?
@@ -654,7 +650,7 @@ static GLboolean dispatch_GetMscRateOML(Display *dpy, GLXDrawable drawable,
if (pGetMscRateOML == NULL)
return GL_FALSE;
- return (*pGetMscRateOML)(dpy, drawable, numerator, denominator);
+ return pGetMscRateOML(dpy, drawable, numerator, denominator);
}
@@ -673,7 +669,7 @@ static const char *dispatch_GetScreenDriver(Display *dpy, int scrNum)
if (pGetScreenDriver == NULL)
return NULL;
- return (*pGetScreenDriver)(dpy, scrNum);
+ return pGetScreenDriver(dpy, scrNum);
}
@@ -694,7 +690,7 @@ static int dispatch_GetSwapIntervalMESA(void)
if (pGetSwapIntervalMESA == NULL)
return 0;
- return (*pGetSwapIntervalMESA)();
+ return pGetSwapIntervalMESA();
}
@@ -713,7 +709,7 @@ static Bool dispatch_GetSyncValuesOML(Display *dpy, GLXDrawable drawable,
if (pGetSyncValuesOML == NULL)
return False;
- return (*pGetSyncValuesOML)(dpy, drawable, ust, msc, sbc);
+ return pGetSyncValuesOML(dpy, drawable, ust, msc, sbc);
}
@@ -732,7 +728,7 @@ static void dispatch_JoinSwapGroupSGIX(Display *dpy, GLXDrawable drawable,
if (pJoinSwapGroupSGIX == NULL)
return;
- (*pJoinSwapGroupSGIX)(dpy, drawable, member);
+ pJoinSwapGroupSGIX(dpy, drawable, member);
}
@@ -754,7 +750,7 @@ static Bool dispatch_QueryCurrentRendererIntegerMESA(int attribute,
if (pQueryCurrentRendererIntegerMESA == NULL)
return False;
- return (*pQueryCurrentRendererIntegerMESA)(attribute, value);
+ return pQueryCurrentRendererIntegerMESA(attribute, value);
}
@@ -775,7 +771,7 @@ static const char *dispatch_QueryCurrentRendererStringMESA(int attribute)
if (pQueryCurrentRendererStringMESA == NULL)
return NULL;
- return (*pQueryCurrentRendererStringMESA)(attribute);
+ return pQueryCurrentRendererStringMESA(attribute);
}
@@ -794,7 +790,7 @@ static Bool dispatch_QueryMaxSwapBarriersSGIX(Display *dpy, int screen,
if (pQueryMaxSwapBarriersSGIX == NULL)
return False;
- return (*pQueryMaxSwapBarriersSGIX)(dpy, screen, max);
+ return pQueryMaxSwapBarriersSGIX(dpy, screen, max);
}
@@ -814,7 +810,7 @@ static Bool dispatch_QueryRendererIntegerMESA(Display *dpy, int screen,
if (pQueryRendererIntegerMESA == NULL)
return False;
- return (*pQueryRendererIntegerMESA)(dpy, screen, renderer, attribute, value);
+ return pQueryRendererIntegerMESA(dpy, screen, renderer, attribute, value);
}
@@ -833,7 +829,7 @@ static const char *dispatch_QueryRendererStringMESA(Display *dpy, int screen,
if (pQueryRendererStringMESA == NULL)
return NULL;
- return (*pQueryRendererStringMESA)(dpy, screen, renderer, attribute);
+ return pQueryRendererStringMESA(dpy, screen, renderer, attribute);
}
@@ -851,7 +847,7 @@ static Bool dispatch_ReleaseBuffersMESA(Display *dpy, GLXDrawable d)
if (pReleaseBuffersMESA == NULL)
return False;
- return (*pReleaseBuffersMESA)(dpy, d);
+ return pReleaseBuffersMESA(dpy, d);
}
@@ -871,7 +867,7 @@ static int64_t dispatch_SwapBuffersMscOML(Display *dpy, GLXDrawable drawable,
if (pSwapBuffersMscOML == NULL)
return 0;
- return (*pSwapBuffersMscOML)(dpy, drawable, target_msc, divisor, remainder);
+ return pSwapBuffersMscOML(dpy, drawable, target_msc, divisor, remainder);
}
@@ -892,7 +888,7 @@ static int dispatch_SwapIntervalMESA(unsigned int interval)
if (pSwapIntervalMESA == NULL)
return 0;
- return (*pSwapIntervalMESA)(interval);
+ return pSwapIntervalMESA(interval);
}
@@ -913,7 +909,7 @@ static Bool dispatch_WaitForMscOML(Display *dpy, GLXDrawable drawable,
if (pWaitForMscOML == NULL)
return False;
- return (*pWaitForMscOML)(dpy, drawable, target_msc, divisor, remainder, ust, msc, sbc);
+ return pWaitForMscOML(dpy, drawable, target_msc, divisor, remainder, ust, msc, sbc);
}
@@ -933,7 +929,7 @@ static Bool dispatch_WaitForSbcOML(Display *dpy, GLXDrawable drawable,
if (pWaitForSbcOML == NULL)
return False;
- return (*pWaitForSbcOML)(dpy, drawable, target_sbc, ust, msc, sbc);
+ return pWaitForSbcOML(dpy, drawable, target_sbc, ust, msc, sbc);
}
#undef __FETCH_FUNCTION_PTR
diff --git a/lib/mesa/src/glx/glxclient.h b/lib/mesa/src/glx/glxclient.h
index df51f2b8c..2a7437fcd 100644
--- a/lib/mesa/src/glx/glxclient.h
+++ b/lib/mesa/src/glx/glxclient.h
@@ -437,6 +437,12 @@ struct glx_context
*/
unsigned long thread_refcount;
+ /**
+ * GLX_ARB_create_context_no_error setting for this context.
+ * This needs to be kept here to enforce shared context rules.
+ */
+ Bool noError;
+
char gl_extension_bits[__GL_EXT_BYTES];
};
@@ -654,7 +660,7 @@ extern int __glXDebug;
extern void __glXSetCurrentContext(struct glx_context * c);
-# if defined( GLX_USE_TLS )
+# if defined( USE_ELF_TLS )
extern __thread void *__glX_tls_Context
__attribute__ ((tls_model("initial-exec")));
@@ -665,7 +671,7 @@ extern __thread void *__glX_tls_Context
extern struct glx_context *__glXGetCurrentContext(void);
-# endif /* defined( GLX_USE_TLS ) */
+# endif /* defined( USE_ELF_TLS ) */
extern void __glXSetCurrentContextNull(void);
diff --git a/lib/mesa/src/glx/glxcmds.c b/lib/mesa/src/glx/glxcmds.c
index bde461b43..8927976f5 100644
--- a/lib/mesa/src/glx/glxcmds.c
+++ b/lib/mesa/src/glx/glxcmds.c
@@ -462,19 +462,6 @@ glXCreateContext(Display * dpy, XVisualInfo * vis,
renderType = GLX_RGBA_TYPE;
} else if (config->renderType & GLX_COLOR_INDEX_BIT) {
renderType = GLX_COLOR_INDEX_TYPE;
- } else if (config->rgbMode) {
- /* If we're here, then renderType is not set correctly. Let's use a
- * safeguard - any TrueColor or DirectColor mode is RGB mode. Such
- * default value is needed by old DRI drivers, which didn't set
- * renderType correctly as the value was just ignored.
- */
- renderType = GLX_RGBA_TYPE;
- } else {
- /* Safeguard - only one option left, all non-RGB modes are indexed
- * modes. Again, this allows drivers with invalid renderType to work
- * properly.
- */
- renderType = GLX_COLOR_INDEX_TYPE;
}
#endif
@@ -854,7 +841,7 @@ glXSwapBuffers(Display * dpy, GLXDrawable drawable)
if (pdraw != NULL) {
Bool flush = gc != &dummyContext && drawable == gc->currentDrawable;
- (*pdraw->psc->driScreen->swapBuffers)(pdraw, 0, 0, 0, flush);
+ pdraw->psc->driScreen->swapBuffers(pdraw, 0, 0, 0, flush);
return;
}
}
@@ -936,7 +923,6 @@ init_fbconfig_for_chooser(struct glx_config * config,
* glXChooseVisual.
*/
if (fbconfig_style_tags) {
- config->rgbMode = GL_TRUE;
config->doubleBufferMode = GLX_DONT_CARE;
config->renderType = GLX_RGBA_BIT;
}
diff --git a/lib/mesa/src/glx/glxconfig.c b/lib/mesa/src/glx/glxconfig.c
index 0e1643fcd..569d24bfa 100644
--- a/lib/mesa/src/glx/glxconfig.c
+++ b/lib/mesa/src/glx/glxconfig.c
@@ -59,7 +59,7 @@ glx_config_get(struct glx_config * mode, int attribute, int *value_return)
*value_return = mode->rgbBits;
return 0;
case GLX_RGBA:
- *value_return = mode->rgbMode;
+ *value_return = !(mode->renderType & GLX_COLOR_INDEX_BIT);
return 0;
case GLX_RED_SIZE:
*value_return = mode->redBits;
@@ -212,65 +212,49 @@ glx_config_get(struct glx_config * mode, int attribute, int *value_return)
* values from the extension specification.
*
* \param count Number of structures to allocate.
- * \param minimum_size Minimum size of a structure to allocate. This allows
- * for differences in the version of the
- * \c struct glx_config stucture used in libGL and in a
- * DRI-based driver.
* \returns A pointer to the first element in a linked list of \c count
* stuctures on success, or \c NULL on failure.
*/
_X_HIDDEN struct glx_config *
glx_config_create_list(unsigned count)
{
- const size_t size = sizeof(struct glx_config);
- struct glx_config *base = NULL;
- struct glx_config **next;
+ struct glx_config *c = NULL;
unsigned i;
- next = &base;
- for (i = 0; i < count; i++) {
- *next = malloc(size);
- if (*next == NULL) {
- glx_config_destroy_list(base);
- base = NULL;
- break;
- }
+ if (!(c = calloc(count, sizeof(struct glx_config))))
+ return NULL;
- (void) memset(*next, 0, size);
- (*next)->visualID = GLX_DONT_CARE;
- (*next)->visualType = GLX_DONT_CARE;
- (*next)->visualRating = GLX_NONE;
- (*next)->transparentPixel = GLX_NONE;
- (*next)->transparentRed = GLX_DONT_CARE;
- (*next)->transparentGreen = GLX_DONT_CARE;
- (*next)->transparentBlue = GLX_DONT_CARE;
- (*next)->transparentAlpha = GLX_DONT_CARE;
- (*next)->transparentIndex = GLX_DONT_CARE;
- (*next)->xRenderable = GLX_DONT_CARE;
- (*next)->fbconfigID = GLX_DONT_CARE;
- (*next)->swapMethod = GLX_SWAP_UNDEFINED_OML;
- (*next)->bindToTextureRgb = GLX_DONT_CARE;
- (*next)->bindToTextureRgba = GLX_DONT_CARE;
- (*next)->bindToMipmapTexture = GLX_DONT_CARE;
- (*next)->bindToTextureTargets = GLX_DONT_CARE;
- (*next)->yInverted = GLX_DONT_CARE;
- (*next)->sRGBCapable = GLX_DONT_CARE;
+ for (i = 0; i < count; i++) {
+ c[i].visualID = GLX_DONT_CARE;
+ c[i].visualType = GLX_DONT_CARE;
+ c[i].visualRating = GLX_NONE;
+ c[i].transparentPixel = GLX_NONE;
+ c[i].transparentRed = GLX_DONT_CARE;
+ c[i].transparentGreen = GLX_DONT_CARE;
+ c[i].transparentBlue = GLX_DONT_CARE;
+ c[i].transparentAlpha = GLX_DONT_CARE;
+ c[i].transparentIndex = GLX_DONT_CARE;
+ c[i].xRenderable = GLX_DONT_CARE;
+ c[i].fbconfigID = GLX_DONT_CARE;
+ c[i].swapMethod = GLX_SWAP_UNDEFINED_OML;
+ c[i].bindToTextureRgb = GLX_DONT_CARE;
+ c[i].bindToTextureRgba = GLX_DONT_CARE;
+ c[i].bindToMipmapTexture = GLX_DONT_CARE;
+ c[i].bindToTextureTargets = GLX_DONT_CARE;
+ c[i].yInverted = GLX_DONT_CARE;
+ c[i].sRGBCapable = GLX_DONT_CARE;
- next = &((*next)->next);
+ if (i != count -1)
+ c[i].next = &(c[i+1]);
}
- return base;
+ return c;
}
_X_HIDDEN void
glx_config_destroy_list(struct glx_config *configs)
{
- while (configs != NULL) {
- struct glx_config *const next = configs->next;
-
- free(configs);
- configs = next;
- }
+ free(configs);
}
diff --git a/lib/mesa/src/glx/glxextensions.h b/lib/mesa/src/glx/glxextensions.h
index c6428d46b..bbdb00dd6 100644
--- a/lib/mesa/src/glx/glxextensions.h
+++ b/lib/mesa/src/glx/glxextensions.h
@@ -39,6 +39,7 @@ enum
{
ARB_context_flush_control_bit = 0,
ARB_create_context_bit,
+ ARB_create_context_no_error_bit,
ARB_create_context_profile_bit,
ARB_create_context_robustness_bit,
ARB_fbconfig_float_bit,
diff --git a/lib/mesa/src/glx/glxglvnd.c b/lib/mesa/src/glx/glxglvnd.c
index b6b415114..bf5c2a06b 100644
--- a/lib/mesa/src/glx/glxglvnd.c
+++ b/lib/mesa/src/glx/glxglvnd.c
@@ -41,7 +41,7 @@ static void *__glXGLVNDGetDispatchAddress(const GLubyte *procName)
{
unsigned internalIndex = FindGLXFunction(procName);
- return __glXDispatchFunctions[internalIndex];
+ return (void*)__glXDispatchFunctions[internalIndex];
}
static void __glXGLVNDSetDispatchIndex(const GLubyte *procName, int index)
diff --git a/lib/mesa/src/glx/indirect.c b/lib/mesa/src/glx/indirect.c
deleted file mode 100644
index 8c674f072..000000000
--- a/lib/mesa/src/glx/indirect.c
+++ /dev/null
@@ -1,11194 +0,0 @@
-/* DO NOT EDIT - This file generated automatically by glX_proto_send.py (from Mesa) script */
-
-/*
- * (C) Copyright IBM Corporation 2004, 2005
- * All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sub license,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * IBM,
- * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
- * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-
-#include <GL/gl.h>
-#include "indirect.h"
-#include "glxclient.h"
-#include "indirect_size.h"
-#include "glapi.h"
-#include <GL/glxproto.h>
-#include <X11/Xlib-xcb.h>
-#include <xcb/xcb.h>
-#include <xcb/glx.h>
-#include <limits.h>
-
-#if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)
-#define FASTCALL __attribute__((fastcall))
-#else
-#define FASTCALL
-#endif
-#if defined(__GNUC__)
-#define NOINLINE __attribute__((noinline))
-#else
-#define NOINLINE
-#endif
-
-static _X_INLINE int
-safe_add(int a, int b)
-{
- if (a < 0 || b < 0)
- return -1;
- if (INT_MAX - a < b)
- return -1;
- return a + b;
-}
-
-static _X_INLINE int
-safe_mul(int a, int b)
-{
- if (a < 0 || b < 0)
- return -1;
- if (a == 0 || b == 0)
- return 0;
- if (a > INT_MAX / b)
- return -1;
- return a * b;
-}
-
-static _X_INLINE int
-safe_pad(int a)
-{
- int ret;
- if (a < 0)
- return -1;
- if ((ret = safe_add(a, 3)) < 0)
- return -1;
- return ret & (GLuint) ~ 3;
-}
-
-#ifndef __GNUC__
-#define __builtin_expect(x, y) x
-#endif
-
-/* If the size and opcode values are known at compile-time, this will, on
- * x86 at least, emit them with a single instruction.
- */
-#define emit_header(dest, op, size) \
- do { union { short s[2]; int i; } temp; \
- temp.s[0] = (size); temp.s[1] = (op); \
- *((int *)(dest)) = temp.i; } while(0)
-
-NOINLINE CARD32
-__glXReadReply(Display * dpy, size_t size, void *dest,
- GLboolean reply_is_always_array)
-{
- xGLXSingleReply reply;
-
- (void) _XReply(dpy, (xReply *) & reply, 0, False);
- if (size != 0) {
- if ((reply.length > 0) || reply_is_always_array) {
- const GLint bytes = (reply_is_always_array)
- ? (4 * reply.length) : (reply.size * size);
- const GLint extra = 4 - (bytes & 3);
-
- _XRead(dpy, dest, bytes);
- if (extra < 4) {
- _XEatData(dpy, extra);
- }
- } else {
- (void) memcpy(dest, &(reply.pad3), size);
- }
- }
-
- return reply.retval;
-}
-
-NOINLINE void
-__glXReadPixelReply(Display * dpy, struct glx_context *gc, unsigned max_dim,
- GLint width, GLint height, GLint depth, GLenum format,
- GLenum type, void *dest, GLboolean dimensions_in_reply)
-{
- xGLXSingleReply reply;
- GLint size;
-
- (void) _XReply(dpy, (xReply *) & reply, 0, False);
-
- if (dimensions_in_reply) {
- width = reply.pad3;
- height = reply.pad4;
- depth = reply.pad5;
-
- if ((height == 0) || (max_dim < 2)) {
- height = 1;
- }
- if ((depth == 0) || (max_dim < 3)) {
- depth = 1;
- }
- }
-
- size = reply.length * 4;
- if (size != 0) {
- void *buf = malloc(size);
-
- if (buf == NULL) {
- _XEatData(dpy, size);
- __glXSetError(gc, GL_OUT_OF_MEMORY);
- } else {
- const GLint extra = 4 - (size & 3);
-
- _XRead(dpy, buf, size);
- if (extra < 4) {
- _XEatData(dpy, extra);
- }
-
- __glEmptyImage(gc, 3, width, height, depth, format, type,
- buf, dest);
- free(buf);
- }
- }
-}
-
-#define X_GLXSingle 0
-
-NOINLINE FASTCALL GLubyte *
-__glXSetupSingleRequest(struct glx_context *gc, GLint sop, GLint cmdlen)
-{
- xGLXSingleReq *req;
- Display *const dpy = gc->currentDpy;
-
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- LockDisplay(dpy);
- GetReqExtra(GLXSingle, cmdlen, req);
- req->reqType = gc->majorOpcode;
- req->contextTag = gc->currentContextTag;
- req->glxCode = sop;
- return (GLubyte *) (req) + sz_xGLXSingleReq;
-}
-
-NOINLINE FASTCALL GLubyte *
-__glXSetupVendorRequest(struct glx_context *gc, GLint code, GLint vop,
- GLint cmdlen)
-{
- xGLXVendorPrivateReq *req;
- Display *const dpy = gc->currentDpy;
-
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- LockDisplay(dpy);
- GetReqExtra(GLXVendorPrivate, cmdlen, req);
- req->reqType = gc->majorOpcode;
- req->glxCode = code;
- req->vendorCode = vop;
- req->contextTag = gc->currentContextTag;
- return (GLubyte *) (req) + sz_xGLXVendorPrivateReq;
-}
-
-const GLuint __glXDefaultPixelStore[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 1 };
-
-#define zero (__glXDefaultPixelStore+0)
-#define one (__glXDefaultPixelStore+8)
-#define default_pixel_store_1D (__glXDefaultPixelStore+4)
-#define default_pixel_store_1D_size 20
-#define default_pixel_store_2D (__glXDefaultPixelStore+4)
-#define default_pixel_store_2D_size 20
-#define default_pixel_store_3D (__glXDefaultPixelStore+0)
-#define default_pixel_store_3D_size 36
-#define default_pixel_store_4D (__glXDefaultPixelStore+0)
-#define default_pixel_store_4D_size 36
-
-static FASTCALL NOINLINE void
-generic_3_byte(GLint rop, const void *ptr)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
-
- emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), ptr, 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static FASTCALL NOINLINE void
-generic_4_byte(GLint rop, const void *ptr)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
-
- emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), ptr, 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static FASTCALL NOINLINE void
-generic_6_byte(GLint rop, const void *ptr)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
-
- emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), ptr, 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static FASTCALL NOINLINE void
-generic_8_byte(GLint rop, const void *ptr)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
-
- emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), ptr, 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static FASTCALL NOINLINE void
-generic_12_byte(GLint rop, const void *ptr)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
-
- emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), ptr, 12);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static FASTCALL NOINLINE void
-generic_16_byte(GLint rop, const void *ptr)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
-
- emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), ptr, 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static FASTCALL NOINLINE void
-generic_24_byte(GLint rop, const void *ptr)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
-
- emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), ptr, 24);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static FASTCALL NOINLINE void
-generic_32_byte(GLint rop, const void *ptr)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
-
- emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), ptr, 32);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLsop_NewList 101
-void
-__indirect_glNewList(GLuint list, GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_new_list(c, gc->currentContextTag, list, mode);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_NewList, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&list), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&mode), 4);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_EndList 102
-void
-__indirect_glEndList(void)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 0;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_end_list(c, gc->currentContextTag);
-#else
- (void) __glXSetupSingleRequest(gc, X_GLsop_EndList, cmdlen);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLrop_CallList 1
-void
-__indirect_glCallList(GLuint list)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_CallList, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&list), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CallLists 2
-void
-__indirect_glCallLists(GLsizei n, GLenum type, const GLvoid * lists)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glCallLists_size(type);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, n));
- if (0 + safe_pad(safe_mul(compsize, n)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (gc->currentDpy != NULL), 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_CallLists, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&type), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (lists),
- safe_mul(compsize, n));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_CallLists;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (pc + 12), (void *) (&type), 4);
- __glXSendLargeCommand(gc, pc, 16, lists, safe_mul(compsize, n));
- }
- }
-}
-
-#define X_GLsop_DeleteLists 103
-void
-__indirect_glDeleteLists(GLuint list, GLsizei range)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_delete_lists(c, gc->currentContextTag, list, range);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_DeleteLists, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&list), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&range), 4);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GenLists 104
-GLuint
-__indirect_glGenLists(GLsizei range)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLuint retval = (GLuint) 0;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_gen_lists_reply_t *reply =
- xcb_glx_gen_lists_reply(c,
- xcb_glx_gen_lists(c,
- gc->currentContextTag,
- range), NULL);
- retval = reply->ret_val;
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GenLists, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&range), 4);
- retval = (GLuint) __glXReadReply(dpy, 0, NULL, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return retval;
-}
-
-#define X_GLrop_ListBase 3
-void
-__indirect_glListBase(GLuint base)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ListBase, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&base), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Begin 4
-void
-__indirect_glBegin(GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Begin, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Bitmap 5
-void
-__indirect_glBitmap(GLsizei width, GLsizei height, GLfloat xorig,
- GLfloat yorig, GLfloat xmove, GLfloat ymove,
- const GLubyte *bitmap)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- (bitmap != NULL) ? __glImageSize(width, height, 1, GL_COLOR_INDEX,
- GL_BITMAP, 0) : 0;
- const GLuint cmdlen = 48 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(gc->currentDpy != NULL, 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_Bitmap, cmdlen);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&height), 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&xorig), 4);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&yorig), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&xmove), 4);
- (void) memcpy((void *) (gc->pc + 44), (void *) (&ymove), 4);
- if (compsize > 0) {
- gc->fillImage(gc, 2, width, height, 1, GL_COLOR_INDEX,
- GL_BITMAP, bitmap, gc->pc + 48, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_2D,
- default_pixel_store_2D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_Bitmap;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 28), (void *) (&width), 4);
- (void) memcpy((void *) (pc + 32), (void *) (&height), 4);
- (void) memcpy((void *) (pc + 36), (void *) (&xorig), 4);
- (void) memcpy((void *) (pc + 40), (void *) (&yorig), 4);
- (void) memcpy((void *) (pc + 44), (void *) (&xmove), 4);
- (void) memcpy((void *) (pc + 48), (void *) (&ymove), 4);
- __glXSendLargeImage(gc, compsize, 2, width, height, 1,
- GL_COLOR_INDEX, GL_BITMAP, bitmap, pc + 52,
- pc + 8);
- }
- }
-}
-
-#define X_GLrop_Color3bv 6
-void
-__indirect_glColor3b(GLbyte red, GLbyte green, GLbyte blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Color3bv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 1);
- (void) memcpy((void *) (gc->pc + 5), (void *) (&green), 1);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&blue), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color3bv 6
-void
-__indirect_glColor3bv(const GLbyte *v)
-{
- generic_3_byte(X_GLrop_Color3bv, v);
-}
-
-#define X_GLrop_Color3dv 7
-void
-__indirect_glColor3d(GLdouble red, GLdouble green, GLdouble blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_Color3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&green), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&blue), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color3dv 7
-void
-__indirect_glColor3dv(const GLdouble * v)
-{
- generic_24_byte(X_GLrop_Color3dv, v);
-}
-
-#define X_GLrop_Color3fv 8
-void
-__indirect_glColor3f(GLfloat red, GLfloat green, GLfloat blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Color3fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color3fv 8
-void
-__indirect_glColor3fv(const GLfloat * v)
-{
- generic_12_byte(X_GLrop_Color3fv, v);
-}
-
-#define X_GLrop_Color3iv 9
-void
-__indirect_glColor3i(GLint red, GLint green, GLint blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Color3iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color3iv 9
-void
-__indirect_glColor3iv(const GLint * v)
-{
- generic_12_byte(X_GLrop_Color3iv, v);
-}
-
-#define X_GLrop_Color3sv 10
-void
-__indirect_glColor3s(GLshort red, GLshort green, GLshort blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Color3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&green), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&blue), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color3sv 10
-void
-__indirect_glColor3sv(const GLshort * v)
-{
- generic_6_byte(X_GLrop_Color3sv, v);
-}
-
-#define X_GLrop_Color3ubv 11
-void
-__indirect_glColor3ub(GLubyte red, GLubyte green, GLubyte blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Color3ubv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 1);
- (void) memcpy((void *) (gc->pc + 5), (void *) (&green), 1);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&blue), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color3ubv 11
-void
-__indirect_glColor3ubv(const GLubyte *v)
-{
- generic_3_byte(X_GLrop_Color3ubv, v);
-}
-
-#define X_GLrop_Color3uiv 12
-void
-__indirect_glColor3ui(GLuint red, GLuint green, GLuint blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Color3uiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color3uiv 12
-void
-__indirect_glColor3uiv(const GLuint * v)
-{
- generic_12_byte(X_GLrop_Color3uiv, v);
-}
-
-#define X_GLrop_Color3usv 13
-void
-__indirect_glColor3us(GLushort red, GLushort green, GLushort blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Color3usv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&green), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&blue), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color3usv 13
-void
-__indirect_glColor3usv(const GLushort * v)
-{
- generic_6_byte(X_GLrop_Color3usv, v);
-}
-
-#define X_GLrop_Color4bv 14
-void
-__indirect_glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Color4bv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 1);
- (void) memcpy((void *) (gc->pc + 5), (void *) (&green), 1);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&blue), 1);
- (void) memcpy((void *) (gc->pc + 7), (void *) (&alpha), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color4bv 14
-void
-__indirect_glColor4bv(const GLbyte *v)
-{
- generic_4_byte(X_GLrop_Color4bv, v);
-}
-
-#define X_GLrop_Color4dv 15
-void
-__indirect_glColor4d(GLdouble red, GLdouble green, GLdouble blue,
- GLdouble alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
- emit_header(gc->pc, X_GLrop_Color4dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&green), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&blue), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&alpha), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color4dv 15
-void
-__indirect_glColor4dv(const GLdouble * v)
-{
- generic_32_byte(X_GLrop_Color4dv, v);
-}
-
-#define X_GLrop_Color4fv 16
-void
-__indirect_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Color4fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&alpha), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color4fv 16
-void
-__indirect_glColor4fv(const GLfloat * v)
-{
- generic_16_byte(X_GLrop_Color4fv, v);
-}
-
-#define X_GLrop_Color4iv 17
-void
-__indirect_glColor4i(GLint red, GLint green, GLint blue, GLint alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Color4iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&alpha), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color4iv 17
-void
-__indirect_glColor4iv(const GLint * v)
-{
- generic_16_byte(X_GLrop_Color4iv, v);
-}
-
-#define X_GLrop_Color4sv 18
-void
-__indirect_glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Color4sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&green), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&blue), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&alpha), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color4sv 18
-void
-__indirect_glColor4sv(const GLshort * v)
-{
- generic_8_byte(X_GLrop_Color4sv, v);
-}
-
-#define X_GLrop_Color4ubv 19
-void
-__indirect_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Color4ubv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 1);
- (void) memcpy((void *) (gc->pc + 5), (void *) (&green), 1);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&blue), 1);
- (void) memcpy((void *) (gc->pc + 7), (void *) (&alpha), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color4ubv 19
-void
-__indirect_glColor4ubv(const GLubyte *v)
-{
- generic_4_byte(X_GLrop_Color4ubv, v);
-}
-
-#define X_GLrop_Color4uiv 20
-void
-__indirect_glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Color4uiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&alpha), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color4uiv 20
-void
-__indirect_glColor4uiv(const GLuint * v)
-{
- generic_16_byte(X_GLrop_Color4uiv, v);
-}
-
-#define X_GLrop_Color4usv 21
-void
-__indirect_glColor4us(GLushort red, GLushort green, GLushort blue,
- GLushort alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Color4usv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&green), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&blue), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&alpha), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Color4usv 21
-void
-__indirect_glColor4usv(const GLushort * v)
-{
- generic_8_byte(X_GLrop_Color4usv, v);
-}
-
-#define X_GLrop_EdgeFlagv 22
-void
-__indirect_glEdgeFlag(GLboolean flag)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_EdgeFlagv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&flag), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_EdgeFlagv 22
-void
-__indirect_glEdgeFlagv(const GLboolean * flag)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_EdgeFlagv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (flag), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_End 23
-void
-__indirect_glEnd(void)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 4;
- emit_header(gc->pc, X_GLrop_End, cmdlen);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Indexdv 24
-void
-__indirect_glIndexd(GLdouble c)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Indexdv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&c), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Indexdv 24
-void
-__indirect_glIndexdv(const GLdouble * c)
-{
- generic_8_byte(X_GLrop_Indexdv, c);
-}
-
-#define X_GLrop_Indexfv 25
-void
-__indirect_glIndexf(GLfloat c)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Indexfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&c), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Indexfv 25
-void
-__indirect_glIndexfv(const GLfloat * c)
-{
- generic_4_byte(X_GLrop_Indexfv, c);
-}
-
-#define X_GLrop_Indexiv 26
-void
-__indirect_glIndexi(GLint c)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Indexiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&c), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Indexiv 26
-void
-__indirect_glIndexiv(const GLint * c)
-{
- generic_4_byte(X_GLrop_Indexiv, c);
-}
-
-#define X_GLrop_Indexsv 27
-void
-__indirect_glIndexs(GLshort c)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Indexsv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&c), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Indexsv 27
-void
-__indirect_glIndexsv(const GLshort * c)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Indexsv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (c), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Normal3bv 28
-void
-__indirect_glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Normal3bv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&nx), 1);
- (void) memcpy((void *) (gc->pc + 5), (void *) (&ny), 1);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&nz), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Normal3bv 28
-void
-__indirect_glNormal3bv(const GLbyte *v)
-{
- generic_3_byte(X_GLrop_Normal3bv, v);
-}
-
-#define X_GLrop_Normal3dv 29
-void
-__indirect_glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_Normal3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&nx), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&ny), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&nz), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Normal3dv 29
-void
-__indirect_glNormal3dv(const GLdouble * v)
-{
- generic_24_byte(X_GLrop_Normal3dv, v);
-}
-
-#define X_GLrop_Normal3fv 30
-void
-__indirect_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Normal3fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&nx), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&ny), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&nz), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Normal3fv 30
-void
-__indirect_glNormal3fv(const GLfloat * v)
-{
- generic_12_byte(X_GLrop_Normal3fv, v);
-}
-
-#define X_GLrop_Normal3iv 31
-void
-__indirect_glNormal3i(GLint nx, GLint ny, GLint nz)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Normal3iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&nx), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&ny), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&nz), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Normal3iv 31
-void
-__indirect_glNormal3iv(const GLint * v)
-{
- generic_12_byte(X_GLrop_Normal3iv, v);
-}
-
-#define X_GLrop_Normal3sv 32
-void
-__indirect_glNormal3s(GLshort nx, GLshort ny, GLshort nz)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Normal3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&nx), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&ny), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&nz), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Normal3sv 32
-void
-__indirect_glNormal3sv(const GLshort * v)
-{
- generic_6_byte(X_GLrop_Normal3sv, v);
-}
-
-#define X_GLrop_RasterPos2dv 33
-void
-__indirect_glRasterPos2d(GLdouble x, GLdouble y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_RasterPos2dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos2dv 33
-void
-__indirect_glRasterPos2dv(const GLdouble * v)
-{
- generic_16_byte(X_GLrop_RasterPos2dv, v);
-}
-
-#define X_GLrop_RasterPos2fv 34
-void
-__indirect_glRasterPos2f(GLfloat x, GLfloat y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_RasterPos2fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos2fv 34
-void
-__indirect_glRasterPos2fv(const GLfloat * v)
-{
- generic_8_byte(X_GLrop_RasterPos2fv, v);
-}
-
-#define X_GLrop_RasterPos2iv 35
-void
-__indirect_glRasterPos2i(GLint x, GLint y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_RasterPos2iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos2iv 35
-void
-__indirect_glRasterPos2iv(const GLint * v)
-{
- generic_8_byte(X_GLrop_RasterPos2iv, v);
-}
-
-#define X_GLrop_RasterPos2sv 36
-void
-__indirect_glRasterPos2s(GLshort x, GLshort y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_RasterPos2sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&y), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos2sv 36
-void
-__indirect_glRasterPos2sv(const GLshort * v)
-{
- generic_4_byte(X_GLrop_RasterPos2sv, v);
-}
-
-#define X_GLrop_RasterPos3dv 37
-void
-__indirect_glRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_RasterPos3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos3dv 37
-void
-__indirect_glRasterPos3dv(const GLdouble * v)
-{
- generic_24_byte(X_GLrop_RasterPos3dv, v);
-}
-
-#define X_GLrop_RasterPos3fv 38
-void
-__indirect_glRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_RasterPos3fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos3fv 38
-void
-__indirect_glRasterPos3fv(const GLfloat * v)
-{
- generic_12_byte(X_GLrop_RasterPos3fv, v);
-}
-
-#define X_GLrop_RasterPos3iv 39
-void
-__indirect_glRasterPos3i(GLint x, GLint y, GLint z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_RasterPos3iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos3iv 39
-void
-__indirect_glRasterPos3iv(const GLint * v)
-{
- generic_12_byte(X_GLrop_RasterPos3iv, v);
-}
-
-#define X_GLrop_RasterPos3sv 40
-void
-__indirect_glRasterPos3s(GLshort x, GLshort y, GLshort z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_RasterPos3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&y), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&z), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos3sv 40
-void
-__indirect_glRasterPos3sv(const GLshort * v)
-{
- generic_6_byte(X_GLrop_RasterPos3sv, v);
-}
-
-#define X_GLrop_RasterPos4dv 41
-void
-__indirect_glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
- emit_header(gc->pc, X_GLrop_RasterPos4dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&w), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos4dv 41
-void
-__indirect_glRasterPos4dv(const GLdouble * v)
-{
- generic_32_byte(X_GLrop_RasterPos4dv, v);
-}
-
-#define X_GLrop_RasterPos4fv 42
-void
-__indirect_glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_RasterPos4fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&w), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos4fv 42
-void
-__indirect_glRasterPos4fv(const GLfloat * v)
-{
- generic_16_byte(X_GLrop_RasterPos4fv, v);
-}
-
-#define X_GLrop_RasterPos4iv 43
-void
-__indirect_glRasterPos4i(GLint x, GLint y, GLint z, GLint w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_RasterPos4iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&w), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos4iv 43
-void
-__indirect_glRasterPos4iv(const GLint * v)
-{
- generic_16_byte(X_GLrop_RasterPos4iv, v);
-}
-
-#define X_GLrop_RasterPos4sv 44
-void
-__indirect_glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_RasterPos4sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&y), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&z), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&w), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RasterPos4sv 44
-void
-__indirect_glRasterPos4sv(const GLshort * v)
-{
- generic_8_byte(X_GLrop_RasterPos4sv, v);
-}
-
-#define X_GLrop_Rectdv 45
-void
-__indirect_glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
- emit_header(gc->pc, X_GLrop_Rectdv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x1), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y1), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&x2), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&y2), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Rectdv 45
-void
-__indirect_glRectdv(const GLdouble * v1, const GLdouble * v2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
- emit_header(gc->pc, X_GLrop_Rectdv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v1), 16);
- (void) memcpy((void *) (gc->pc + 20), (void *) (v2), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Rectfv 46
-void
-__indirect_glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Rectfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x1), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y1), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x2), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y2), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Rectfv 46
-void
-__indirect_glRectfv(const GLfloat * v1, const GLfloat * v2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Rectfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v1), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v2), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Rectiv 47
-void
-__indirect_glRecti(GLint x1, GLint y1, GLint x2, GLint y2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Rectiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x1), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y1), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x2), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y2), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Rectiv 47
-void
-__indirect_glRectiv(const GLint * v1, const GLint * v2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Rectiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v1), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v2), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Rectsv 48
-void
-__indirect_glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Rectsv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x1), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&y1), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x2), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&y2), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Rectsv 48
-void
-__indirect_glRectsv(const GLshort * v1, const GLshort * v2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Rectsv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v1), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v2), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord1dv 49
-void
-__indirect_glTexCoord1d(GLdouble s)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_TexCoord1dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord1dv 49
-void
-__indirect_glTexCoord1dv(const GLdouble * v)
-{
- generic_8_byte(X_GLrop_TexCoord1dv, v);
-}
-
-#define X_GLrop_TexCoord1fv 50
-void
-__indirect_glTexCoord1f(GLfloat s)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_TexCoord1fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord1fv 50
-void
-__indirect_glTexCoord1fv(const GLfloat * v)
-{
- generic_4_byte(X_GLrop_TexCoord1fv, v);
-}
-
-#define X_GLrop_TexCoord1iv 51
-void
-__indirect_glTexCoord1i(GLint s)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_TexCoord1iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord1iv 51
-void
-__indirect_glTexCoord1iv(const GLint * v)
-{
- generic_4_byte(X_GLrop_TexCoord1iv, v);
-}
-
-#define X_GLrop_TexCoord1sv 52
-void
-__indirect_glTexCoord1s(GLshort s)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_TexCoord1sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord1sv 52
-void
-__indirect_glTexCoord1sv(const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_TexCoord1sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord2dv 53
-void
-__indirect_glTexCoord2d(GLdouble s, GLdouble t)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_TexCoord2dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord2dv 53
-void
-__indirect_glTexCoord2dv(const GLdouble * v)
-{
- generic_16_byte(X_GLrop_TexCoord2dv, v);
-}
-
-#define X_GLrop_TexCoord2fv 54
-void
-__indirect_glTexCoord2f(GLfloat s, GLfloat t)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_TexCoord2fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&t), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord2fv 54
-void
-__indirect_glTexCoord2fv(const GLfloat * v)
-{
- generic_8_byte(X_GLrop_TexCoord2fv, v);
-}
-
-#define X_GLrop_TexCoord2iv 55
-void
-__indirect_glTexCoord2i(GLint s, GLint t)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_TexCoord2iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&t), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord2iv 55
-void
-__indirect_glTexCoord2iv(const GLint * v)
-{
- generic_8_byte(X_GLrop_TexCoord2iv, v);
-}
-
-#define X_GLrop_TexCoord2sv 56
-void
-__indirect_glTexCoord2s(GLshort s, GLshort t)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_TexCoord2sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&t), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord2sv 56
-void
-__indirect_glTexCoord2sv(const GLshort * v)
-{
- generic_4_byte(X_GLrop_TexCoord2sv, v);
-}
-
-#define X_GLrop_TexCoord3dv 57
-void
-__indirect_glTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_TexCoord3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&r), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord3dv 57
-void
-__indirect_glTexCoord3dv(const GLdouble * v)
-{
- generic_24_byte(X_GLrop_TexCoord3dv, v);
-}
-
-#define X_GLrop_TexCoord3fv 58
-void
-__indirect_glTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_TexCoord3fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&t), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&r), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord3fv 58
-void
-__indirect_glTexCoord3fv(const GLfloat * v)
-{
- generic_12_byte(X_GLrop_TexCoord3fv, v);
-}
-
-#define X_GLrop_TexCoord3iv 59
-void
-__indirect_glTexCoord3i(GLint s, GLint t, GLint r)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_TexCoord3iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&t), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&r), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord3iv 59
-void
-__indirect_glTexCoord3iv(const GLint * v)
-{
- generic_12_byte(X_GLrop_TexCoord3iv, v);
-}
-
-#define X_GLrop_TexCoord3sv 60
-void
-__indirect_glTexCoord3s(GLshort s, GLshort t, GLshort r)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_TexCoord3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&t), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&r), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord3sv 60
-void
-__indirect_glTexCoord3sv(const GLshort * v)
-{
- generic_6_byte(X_GLrop_TexCoord3sv, v);
-}
-
-#define X_GLrop_TexCoord4dv 61
-void
-__indirect_glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
- emit_header(gc->pc, X_GLrop_TexCoord4dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&r), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&q), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord4dv 61
-void
-__indirect_glTexCoord4dv(const GLdouble * v)
-{
- generic_32_byte(X_GLrop_TexCoord4dv, v);
-}
-
-#define X_GLrop_TexCoord4fv 62
-void
-__indirect_glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_TexCoord4fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&t), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&r), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&q), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord4fv 62
-void
-__indirect_glTexCoord4fv(const GLfloat * v)
-{
- generic_16_byte(X_GLrop_TexCoord4fv, v);
-}
-
-#define X_GLrop_TexCoord4iv 63
-void
-__indirect_glTexCoord4i(GLint s, GLint t, GLint r, GLint q)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_TexCoord4iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&t), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&r), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&q), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord4iv 63
-void
-__indirect_glTexCoord4iv(const GLint * v)
-{
- generic_16_byte(X_GLrop_TexCoord4iv, v);
-}
-
-#define X_GLrop_TexCoord4sv 64
-void
-__indirect_glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_TexCoord4sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&t), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&r), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&q), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexCoord4sv 64
-void
-__indirect_glTexCoord4sv(const GLshort * v)
-{
- generic_8_byte(X_GLrop_TexCoord4sv, v);
-}
-
-#define X_GLrop_Vertex2dv 65
-void
-__indirect_glVertex2d(GLdouble x, GLdouble y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Vertex2dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex2dv 65
-void
-__indirect_glVertex2dv(const GLdouble * v)
-{
- generic_16_byte(X_GLrop_Vertex2dv, v);
-}
-
-#define X_GLrop_Vertex2fv 66
-void
-__indirect_glVertex2f(GLfloat x, GLfloat y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Vertex2fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex2fv 66
-void
-__indirect_glVertex2fv(const GLfloat * v)
-{
- generic_8_byte(X_GLrop_Vertex2fv, v);
-}
-
-#define X_GLrop_Vertex2iv 67
-void
-__indirect_glVertex2i(GLint x, GLint y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Vertex2iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex2iv 67
-void
-__indirect_glVertex2iv(const GLint * v)
-{
- generic_8_byte(X_GLrop_Vertex2iv, v);
-}
-
-#define X_GLrop_Vertex2sv 68
-void
-__indirect_glVertex2s(GLshort x, GLshort y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Vertex2sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&y), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex2sv 68
-void
-__indirect_glVertex2sv(const GLshort * v)
-{
- generic_4_byte(X_GLrop_Vertex2sv, v);
-}
-
-#define X_GLrop_Vertex3dv 69
-void
-__indirect_glVertex3d(GLdouble x, GLdouble y, GLdouble z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_Vertex3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex3dv 69
-void
-__indirect_glVertex3dv(const GLdouble * v)
-{
- generic_24_byte(X_GLrop_Vertex3dv, v);
-}
-
-#define X_GLrop_Vertex3fv 70
-void
-__indirect_glVertex3f(GLfloat x, GLfloat y, GLfloat z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Vertex3fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex3fv 70
-void
-__indirect_glVertex3fv(const GLfloat * v)
-{
- generic_12_byte(X_GLrop_Vertex3fv, v);
-}
-
-#define X_GLrop_Vertex3iv 71
-void
-__indirect_glVertex3i(GLint x, GLint y, GLint z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Vertex3iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex3iv 71
-void
-__indirect_glVertex3iv(const GLint * v)
-{
- generic_12_byte(X_GLrop_Vertex3iv, v);
-}
-
-#define X_GLrop_Vertex3sv 72
-void
-__indirect_glVertex3s(GLshort x, GLshort y, GLshort z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Vertex3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&y), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&z), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex3sv 72
-void
-__indirect_glVertex3sv(const GLshort * v)
-{
- generic_6_byte(X_GLrop_Vertex3sv, v);
-}
-
-#define X_GLrop_Vertex4dv 73
-void
-__indirect_glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
- emit_header(gc->pc, X_GLrop_Vertex4dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&w), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex4dv 73
-void
-__indirect_glVertex4dv(const GLdouble * v)
-{
- generic_32_byte(X_GLrop_Vertex4dv, v);
-}
-
-#define X_GLrop_Vertex4fv 74
-void
-__indirect_glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Vertex4fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&w), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex4fv 74
-void
-__indirect_glVertex4fv(const GLfloat * v)
-{
- generic_16_byte(X_GLrop_Vertex4fv, v);
-}
-
-#define X_GLrop_Vertex4iv 75
-void
-__indirect_glVertex4i(GLint x, GLint y, GLint z, GLint w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Vertex4iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&w), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex4iv 75
-void
-__indirect_glVertex4iv(const GLint * v)
-{
- generic_16_byte(X_GLrop_Vertex4iv, v);
-}
-
-#define X_GLrop_Vertex4sv 76
-void
-__indirect_glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Vertex4sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&y), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&z), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&w), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Vertex4sv 76
-void
-__indirect_glVertex4sv(const GLshort * v)
-{
- generic_8_byte(X_GLrop_Vertex4sv, v);
-}
-
-#define X_GLrop_ClipPlane 77
-void
-__indirect_glClipPlane(GLenum plane, const GLdouble * equation)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 40;
- emit_header(gc->pc, X_GLrop_ClipPlane, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (equation), 32);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&plane), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ColorMaterial 78
-void
-__indirect_glColorMaterial(GLenum face, GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_ColorMaterial, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&face), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CullFace 79
-void
-__indirect_glCullFace(GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_CullFace, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Fogf 80
-void
-__indirect_glFogf(GLenum pname, GLfloat param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Fogf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Fogfv 81
-void
-__indirect_glFogfv(GLenum pname, const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glFogfv_size(pname);
- const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_Fogfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Fogi 82
-void
-__indirect_glFogi(GLenum pname, GLint param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Fogi, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Fogiv 83
-void
-__indirect_glFogiv(GLenum pname, const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glFogiv_size(pname);
- const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_Fogiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_FrontFace 84
-void
-__indirect_glFrontFace(GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_FrontFace, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Hint 85
-void
-__indirect_glHint(GLenum target, GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Hint, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Lightf 86
-void
-__indirect_glLightf(GLenum light, GLenum pname, GLfloat param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Lightf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&light), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Lightfv 87
-void
-__indirect_glLightfv(GLenum light, GLenum pname, const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glLightfv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_Lightfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&light), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Lighti 88
-void
-__indirect_glLighti(GLenum light, GLenum pname, GLint param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Lighti, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&light), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Lightiv 89
-void
-__indirect_glLightiv(GLenum light, GLenum pname, const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glLightiv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_Lightiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&light), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LightModelf 90
-void
-__indirect_glLightModelf(GLenum pname, GLfloat param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_LightModelf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LightModelfv 91
-void
-__indirect_glLightModelfv(GLenum pname, const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glLightModelfv_size(pname);
- const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_LightModelfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LightModeli 92
-void
-__indirect_glLightModeli(GLenum pname, GLint param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_LightModeli, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LightModeliv 93
-void
-__indirect_glLightModeliv(GLenum pname, const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glLightModeliv_size(pname);
- const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_LightModeliv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LineStipple 94
-void
-__indirect_glLineStipple(GLint factor, GLushort pattern)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_LineStipple, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&factor), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pattern), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LineWidth 95
-void
-__indirect_glLineWidth(GLfloat width)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_LineWidth, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&width), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Materialf 96
-void
-__indirect_glMaterialf(GLenum face, GLenum pname, GLfloat param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Materialf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&face), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Materialfv 97
-void
-__indirect_glMaterialfv(GLenum face, GLenum pname, const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glMaterialfv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_Materialfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&face), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Materiali 98
-void
-__indirect_glMateriali(GLenum face, GLenum pname, GLint param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Materiali, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&face), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Materialiv 99
-void
-__indirect_glMaterialiv(GLenum face, GLenum pname, const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glMaterialiv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_Materialiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&face), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PointSize 100
-void
-__indirect_glPointSize(GLfloat size)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_PointSize, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&size), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PolygonMode 101
-void
-__indirect_glPolygonMode(GLenum face, GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_PolygonMode, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&face), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PolygonStipple 102
-void
-__indirect_glPolygonStipple(const GLubyte *mask)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- (mask != NULL) ? __glImageSize(32, 32, 1, GL_COLOR_INDEX, GL_BITMAP,
- 0) : 0;
- const GLuint cmdlen = 24 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_PolygonStipple, cmdlen);
- if (compsize > 0) {
- gc->fillImage(gc, 2, 32, 32, 1, GL_COLOR_INDEX, GL_BITMAP, mask,
- gc->pc + 24, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_2D,
- default_pixel_store_2D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Scissor 103
-void
-__indirect_glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Scissor, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&height), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ShadeModel 104
-void
-__indirect_glShadeModel(GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ShadeModel, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexParameterf 105
-void
-__indirect_glTexParameterf(GLenum target, GLenum pname, GLfloat param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_TexParameterf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexParameterfv 106
-void
-__indirect_glTexParameterfv(GLenum target, GLenum pname,
- const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glTexParameterfv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_TexParameterfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexParameteri 107
-void
-__indirect_glTexParameteri(GLenum target, GLenum pname, GLint param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_TexParameteri, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexParameteriv 108
-void
-__indirect_glTexParameteriv(GLenum target, GLenum pname, const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glTexParameteriv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_TexParameteriv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static void
-__glx_TexImage_1D2D(unsigned opcode, unsigned dim, GLenum target, GLint level,
- GLint internalformat, GLsizei width, GLsizei height,
- GLint border, GLenum format, GLenum type,
- const GLvoid * pixels)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- __glImageSize(width, height, 1, format, type, target);
- const GLuint cmdlen = 56 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(gc->currentDpy != NULL, 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, opcode, cmdlen);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&internalformat),
- 4);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&height), 4);
- (void) memcpy((void *) (gc->pc + 44), (void *) (&border), 4);
- (void) memcpy((void *) (gc->pc + 48), (void *) (&format), 4);
- (void) memcpy((void *) (gc->pc + 52), (void *) (&type), 4);
- if ((compsize > 0) && (pixels != NULL)) {
- gc->fillImage(gc, dim, width, height, 1, format, type, pixels,
- gc->pc + 56, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_2D,
- default_pixel_store_2D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = opcode;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 28), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 32), (void *) (&level), 4);
- (void) memcpy((void *) (pc + 36), (void *) (&internalformat), 4);
- (void) memcpy((void *) (pc + 40), (void *) (&width), 4);
- (void) memcpy((void *) (pc + 44), (void *) (&height), 4);
- (void) memcpy((void *) (pc + 48), (void *) (&border), 4);
- (void) memcpy((void *) (pc + 52), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 56), (void *) (&type), 4);
- __glXSendLargeImage(gc, compsize, dim, width, height, 1, format,
- type, pixels, pc + 60, pc + 8);
- }
- }
-}
-
-#define X_GLrop_TexImage1D 109
-void
-__indirect_glTexImage1D(GLenum target, GLint level, GLint internalformat,
- GLsizei width, GLint border, GLenum format,
- GLenum type, const GLvoid * pixels)
-{
- __glx_TexImage_1D2D(X_GLrop_TexImage1D, 1, target, level, internalformat,
- width, 1, border, format, type, pixels);
-}
-
-#define X_GLrop_TexImage2D 110
-void
-__indirect_glTexImage2D(GLenum target, GLint level, GLint internalformat,
- GLsizei width, GLsizei height, GLint border,
- GLenum format, GLenum type, const GLvoid * pixels)
-{
- __glx_TexImage_1D2D(X_GLrop_TexImage2D, 2, target, level, internalformat,
- width, height, border, format, type, pixels);
-}
-
-#define X_GLrop_TexEnvf 111
-void
-__indirect_glTexEnvf(GLenum target, GLenum pname, GLfloat param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_TexEnvf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexEnvfv 112
-void
-__indirect_glTexEnvfv(GLenum target, GLenum pname, const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glTexEnvfv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_TexEnvfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexEnvi 113
-void
-__indirect_glTexEnvi(GLenum target, GLenum pname, GLint param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_TexEnvi, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexEnviv 114
-void
-__indirect_glTexEnviv(GLenum target, GLenum pname, const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glTexEnviv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_TexEnviv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexGend 115
-void
-__indirect_glTexGend(GLenum coord, GLenum pname, GLdouble param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_TexGend, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&param), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&coord), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&pname), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexGendv 116
-void
-__indirect_glTexGendv(GLenum coord, GLenum pname, const GLdouble * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glTexGendv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 8));
- if (0 + safe_pad(safe_mul(compsize, 8)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_TexGendv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&coord), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 8));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexGenf 117
-void
-__indirect_glTexGenf(GLenum coord, GLenum pname, GLfloat param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_TexGenf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&coord), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexGenfv 118
-void
-__indirect_glTexGenfv(GLenum coord, GLenum pname, const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glTexGenfv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_TexGenfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&coord), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexGeni 119
-void
-__indirect_glTexGeni(GLenum coord, GLenum pname, GLint param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_TexGeni, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&coord), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_TexGeniv 120
-void
-__indirect_glTexGeniv(GLenum coord, GLenum pname, const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glTexGeniv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_TexGeniv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&coord), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_InitNames 121
-void
-__indirect_glInitNames(void)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 4;
- emit_header(gc->pc, X_GLrop_InitNames, cmdlen);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LoadName 122
-void
-__indirect_glLoadName(GLuint name)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_LoadName, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&name), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PassThrough 123
-void
-__indirect_glPassThrough(GLfloat token)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_PassThrough, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&token), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PopName 124
-void
-__indirect_glPopName(void)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 4;
- emit_header(gc->pc, X_GLrop_PopName, cmdlen);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PushName 125
-void
-__indirect_glPushName(GLuint name)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_PushName, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&name), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_DrawBuffer 126
-void
-__indirect_glDrawBuffer(GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_DrawBuffer, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Clear 127
-void
-__indirect_glClear(GLbitfield mask)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Clear, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mask), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ClearAccum 128
-void
-__indirect_glClearAccum(GLfloat red, GLfloat green, GLfloat blue,
- GLfloat alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_ClearAccum, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&alpha), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ClearIndex 129
-void
-__indirect_glClearIndex(GLfloat c)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ClearIndex, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&c), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ClearColor 130
-void
-__indirect_glClearColor(GLclampf red, GLclampf green, GLclampf blue,
- GLclampf alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_ClearColor, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&alpha), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ClearStencil 131
-void
-__indirect_glClearStencil(GLint s)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ClearStencil, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ClearDepth 132
-void
-__indirect_glClearDepth(GLclampd depth)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_ClearDepth, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&depth), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_StencilMask 133
-void
-__indirect_glStencilMask(GLuint mask)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_StencilMask, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mask), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ColorMask 134
-void
-__indirect_glColorMask(GLboolean red, GLboolean green, GLboolean blue,
- GLboolean alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ColorMask, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 1);
- (void) memcpy((void *) (gc->pc + 5), (void *) (&green), 1);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&blue), 1);
- (void) memcpy((void *) (gc->pc + 7), (void *) (&alpha), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_DepthMask 135
-void
-__indirect_glDepthMask(GLboolean flag)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_DepthMask, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&flag), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_IndexMask 136
-void
-__indirect_glIndexMask(GLuint mask)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_IndexMask, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mask), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Accum 137
-void
-__indirect_glAccum(GLenum op, GLfloat value)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_Accum, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&value), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PopAttrib 141
-void
-__indirect_glPopAttrib(void)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 4;
- emit_header(gc->pc, X_GLrop_PopAttrib, cmdlen);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PushAttrib 142
-void
-__indirect_glPushAttrib(GLbitfield mask)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_PushAttrib, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mask), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MapGrid1d 147
-void
-__indirect_glMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_MapGrid1d, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&u1), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&u2), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&un), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MapGrid1f 148
-void
-__indirect_glMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MapGrid1f, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&un), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&u1), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&u2), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MapGrid2d 149
-void
-__indirect_glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn,
- GLdouble v1, GLdouble v2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 44;
- emit_header(gc->pc, X_GLrop_MapGrid2d, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&u1), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&u2), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&v1), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&v2), 8);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&un), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&vn), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MapGrid2f 150
-void
-__indirect_glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1,
- GLfloat v2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_MapGrid2f, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&un), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&u1), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&u2), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&vn), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&v1), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&v2), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_EvalCoord1dv 151
-void
-__indirect_glEvalCoord1d(GLdouble u)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_EvalCoord1dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&u), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_EvalCoord1dv 151
-void
-__indirect_glEvalCoord1dv(const GLdouble * u)
-{
- generic_8_byte(X_GLrop_EvalCoord1dv, u);
-}
-
-#define X_GLrop_EvalCoord1fv 152
-void
-__indirect_glEvalCoord1f(GLfloat u)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_EvalCoord1fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&u), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_EvalCoord1fv 152
-void
-__indirect_glEvalCoord1fv(const GLfloat * u)
-{
- generic_4_byte(X_GLrop_EvalCoord1fv, u);
-}
-
-#define X_GLrop_EvalCoord2dv 153
-void
-__indirect_glEvalCoord2d(GLdouble u, GLdouble v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_EvalCoord2dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&u), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_EvalCoord2dv 153
-void
-__indirect_glEvalCoord2dv(const GLdouble * u)
-{
- generic_16_byte(X_GLrop_EvalCoord2dv, u);
-}
-
-#define X_GLrop_EvalCoord2fv 154
-void
-__indirect_glEvalCoord2f(GLfloat u, GLfloat v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_EvalCoord2fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&u), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_EvalCoord2fv 154
-void
-__indirect_glEvalCoord2fv(const GLfloat * u)
-{
- generic_8_byte(X_GLrop_EvalCoord2fv, u);
-}
-
-#define X_GLrop_EvalMesh1 155
-void
-__indirect_glEvalMesh1(GLenum mode, GLint i1, GLint i2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_EvalMesh1, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&i1), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&i2), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_EvalPoint1 156
-void
-__indirect_glEvalPoint1(GLint i)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_EvalPoint1, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&i), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_EvalMesh2 157
-void
-__indirect_glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_EvalMesh2, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&i1), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&i2), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&j1), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&j2), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_EvalPoint2 158
-void
-__indirect_glEvalPoint2(GLint i, GLint j)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_EvalPoint2, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&i), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&j), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_AlphaFunc 159
-void
-__indirect_glAlphaFunc(GLenum func, GLclampf ref)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_AlphaFunc, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&func), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&ref), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_BlendFunc 160
-void
-__indirect_glBlendFunc(GLenum sfactor, GLenum dfactor)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_BlendFunc, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&sfactor), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&dfactor), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LogicOp 161
-void
-__indirect_glLogicOp(GLenum opcode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_LogicOp, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&opcode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_StencilFunc 162
-void
-__indirect_glStencilFunc(GLenum func, GLint ref, GLuint mask)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_StencilFunc, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&func), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&ref), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&mask), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_StencilOp 163
-void
-__indirect_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_StencilOp, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&fail), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&zfail), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&zpass), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_DepthFunc 164
-void
-__indirect_glDepthFunc(GLenum func)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_DepthFunc, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&func), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PixelZoom 165
-void
-__indirect_glPixelZoom(GLfloat xfactor, GLfloat yfactor)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_PixelZoom, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&xfactor), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&yfactor), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PixelTransferf 166
-void
-__indirect_glPixelTransferf(GLenum pname, GLfloat param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_PixelTransferf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PixelTransferi 167
-void
-__indirect_glPixelTransferi(GLenum pname, GLint param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_PixelTransferi, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PixelMapfv 168
-void
-__indirect_glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(mapsize, 4));
- if (0 + safe_pad(safe_mul(mapsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (mapsize < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((mapsize >= 0) && (gc->currentDpy != NULL), 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_PixelMapfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&map), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&mapsize), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (values),
- safe_mul(mapsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_PixelMapfv;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&map), 4);
- (void) memcpy((void *) (pc + 12), (void *) (&mapsize), 4);
- __glXSendLargeCommand(gc, pc, 16, values, safe_mul(mapsize, 4));
- }
- }
-}
-
-#define X_GLrop_PixelMapuiv 169
-void
-__indirect_glPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(mapsize, 4));
- if (0 + safe_pad(safe_mul(mapsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (mapsize < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((mapsize >= 0) && (gc->currentDpy != NULL), 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_PixelMapuiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&map), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&mapsize), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (values),
- safe_mul(mapsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_PixelMapuiv;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&map), 4);
- (void) memcpy((void *) (pc + 12), (void *) (&mapsize), 4);
- __glXSendLargeCommand(gc, pc, 16, values, safe_mul(mapsize, 4));
- }
- }
-}
-
-#define X_GLrop_PixelMapusv 170
-void
-__indirect_glPixelMapusv(GLenum map, GLsizei mapsize, const GLushort * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(mapsize, 2));
- if (0 + safe_pad(safe_mul(mapsize, 2)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (mapsize < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((mapsize >= 0) && (gc->currentDpy != NULL), 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_PixelMapusv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&map), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&mapsize), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (values),
- safe_mul(mapsize, 2));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_PixelMapusv;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&map), 4);
- (void) memcpy((void *) (pc + 12), (void *) (&mapsize), 4);
- __glXSendLargeCommand(gc, pc, 16, values, safe_mul(mapsize, 2));
- }
- }
-}
-
-#define X_GLrop_ReadBuffer 171
-void
-__indirect_glReadBuffer(GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ReadBuffer, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CopyPixels 172
-void
-__indirect_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height,
- GLenum type)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_CopyPixels, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&height), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&type), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLsop_ReadPixels 111
-void
-__indirect_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
- GLenum format, GLenum type, GLvoid * pixels)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 28;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_read_pixels_reply_t *reply =
- xcb_glx_read_pixels_reply(c,
- xcb_glx_read_pixels(c,
- gc->
- currentContextTag,
- x, y, width, height,
- format, type,
- state->storePack.
- swapEndian, 0),
- NULL);
- __glEmptyImage(gc, 3, width, height, 1, format, type,
- xcb_glx_read_pixels_data(reply), pixels);
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_ReadPixels, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&x), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&y), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&width), 4);
- (void) memcpy((void *) (pc + 12), (void *) (&height), 4);
- (void) memcpy((void *) (pc + 16), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 20), (void *) (&type), 4);
- *(int32_t *) (pc + 24) = 0;
- *(int8_t *) (pc + 24) = state->storePack.swapEndian;
- __glXReadPixelReply(dpy, gc, 2, width, height, 1, format, type,
- pixels, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLrop_DrawPixels 173
-void
-__indirect_glDrawPixels(GLsizei width, GLsizei height, GLenum format,
- GLenum type, const GLvoid * pixels)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- (pixels != NULL) ? __glImageSize(width, height, 1, format, type,
- 0) : 0;
- const GLuint cmdlen = 40 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(gc->currentDpy != NULL, 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_DrawPixels, cmdlen);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&height), 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&format), 4);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&type), 4);
- if (compsize > 0) {
- gc->fillImage(gc, 2, width, height, 1, format, type, pixels,
- gc->pc + 40, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_2D,
- default_pixel_store_2D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_DrawPixels;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 28), (void *) (&width), 4);
- (void) memcpy((void *) (pc + 32), (void *) (&height), 4);
- (void) memcpy((void *) (pc + 36), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 40), (void *) (&type), 4);
- __glXSendLargeImage(gc, compsize, 2, width, height, 1, format,
- type, pixels, pc + 44, pc + 8);
- }
- }
-}
-
-#define X_GLsop_GetClipPlane 113
-void
-__indirect_glGetClipPlane(GLenum plane, GLdouble * equation)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_clip_plane_reply_t *reply =
- xcb_glx_get_clip_plane_reply(c,
- xcb_glx_get_clip_plane(c,
- gc->
- currentContextTag,
- plane), NULL);
- (void) memcpy(equation, xcb_glx_get_clip_plane_data(reply),
- xcb_glx_get_clip_plane_data_length(reply) *
- sizeof(GLdouble));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetClipPlane, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&plane), 4);
- (void) __glXReadReply(dpy, 8, equation, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetLightfv 118
-void
-__indirect_glGetLightfv(GLenum light, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_lightfv_reply_t *reply =
- xcb_glx_get_lightfv_reply(c,
- xcb_glx_get_lightfv(c,
- gc->
- currentContextTag,
- light, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_lightfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_lightfv_data(reply),
- xcb_glx_get_lightfv_data_length(reply) *
- sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetLightfv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&light), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetLightiv 119
-void
-__indirect_glGetLightiv(GLenum light, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_lightiv_reply_t *reply =
- xcb_glx_get_lightiv_reply(c,
- xcb_glx_get_lightiv(c,
- gc->
- currentContextTag,
- light, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_lightiv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_lightiv_data(reply),
- xcb_glx_get_lightiv_data_length(reply) *
- sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetLightiv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&light), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetMapdv 120
-void
-__indirect_glGetMapdv(GLenum target, GLenum query, GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_mapdv_reply_t *reply =
- xcb_glx_get_mapdv_reply(c,
- xcb_glx_get_mapdv(c,
- gc->currentContextTag,
- target, query), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_mapdv_data_length(reply) == 1)
- (void) memcpy(v, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(v, xcb_glx_get_mapdv_data(reply),
- xcb_glx_get_mapdv_data_length(reply) *
- sizeof(GLdouble));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetMapdv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&query), 4);
- (void) __glXReadReply(dpy, 8, v, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetMapfv 121
-void
-__indirect_glGetMapfv(GLenum target, GLenum query, GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_mapfv_reply_t *reply =
- xcb_glx_get_mapfv_reply(c,
- xcb_glx_get_mapfv(c,
- gc->currentContextTag,
- target, query), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_mapfv_data_length(reply) == 1)
- (void) memcpy(v, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(v, xcb_glx_get_mapfv_data(reply),
- xcb_glx_get_mapfv_data_length(reply) *
- sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetMapfv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&query), 4);
- (void) __glXReadReply(dpy, 4, v, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetMapiv 122
-void
-__indirect_glGetMapiv(GLenum target, GLenum query, GLint * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_mapiv_reply_t *reply =
- xcb_glx_get_mapiv_reply(c,
- xcb_glx_get_mapiv(c,
- gc->currentContextTag,
- target, query), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_mapiv_data_length(reply) == 1)
- (void) memcpy(v, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(v, xcb_glx_get_mapiv_data(reply),
- xcb_glx_get_mapiv_data_length(reply) *
- sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetMapiv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&query), 4);
- (void) __glXReadReply(dpy, 4, v, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetMaterialfv 123
-void
-__indirect_glGetMaterialfv(GLenum face, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_materialfv_reply_t *reply =
- xcb_glx_get_materialfv_reply(c,
- xcb_glx_get_materialfv(c,
- gc->
- currentContextTag,
- face, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_materialfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_materialfv_data(reply),
- xcb_glx_get_materialfv_data_length(reply) *
- sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetMaterialfv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&face), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetMaterialiv 124
-void
-__indirect_glGetMaterialiv(GLenum face, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_materialiv_reply_t *reply =
- xcb_glx_get_materialiv_reply(c,
- xcb_glx_get_materialiv(c,
- gc->
- currentContextTag,
- face, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_materialiv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_materialiv_data(reply),
- xcb_glx_get_materialiv_data_length(reply) *
- sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetMaterialiv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&face), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetPixelMapfv 125
-void
-__indirect_glGetPixelMapfv(GLenum map, GLfloat * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_pixel_mapfv_reply_t *reply =
- xcb_glx_get_pixel_mapfv_reply(c,
- xcb_glx_get_pixel_mapfv(c,
- gc->
- currentContextTag,
- map), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_pixel_mapfv_data_length(reply) == 1)
- (void) memcpy(values, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(values, xcb_glx_get_pixel_mapfv_data(reply),
- xcb_glx_get_pixel_mapfv_data_length(reply) *
- sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetPixelMapfv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&map), 4);
- (void) __glXReadReply(dpy, 4, values, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetPixelMapuiv 126
-void
-__indirect_glGetPixelMapuiv(GLenum map, GLuint * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_pixel_mapuiv_reply_t *reply =
- xcb_glx_get_pixel_mapuiv_reply(c,
- xcb_glx_get_pixel_mapuiv(c,
- gc->
- currentContextTag,
- map),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_pixel_mapuiv_data_length(reply) == 1)
- (void) memcpy(values, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(values, xcb_glx_get_pixel_mapuiv_data(reply),
- xcb_glx_get_pixel_mapuiv_data_length(reply) *
- sizeof(GLuint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetPixelMapuiv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&map), 4);
- (void) __glXReadReply(dpy, 4, values, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetPixelMapusv 127
-void
-__indirect_glGetPixelMapusv(GLenum map, GLushort * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_pixel_mapusv_reply_t *reply =
- xcb_glx_get_pixel_mapusv_reply(c,
- xcb_glx_get_pixel_mapusv(c,
- gc->
- currentContextTag,
- map),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_pixel_mapusv_data_length(reply) == 1)
- (void) memcpy(values, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(values, xcb_glx_get_pixel_mapusv_data(reply),
- xcb_glx_get_pixel_mapusv_data_length(reply) *
- sizeof(GLushort));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetPixelMapusv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&map), 4);
- (void) __glXReadReply(dpy, 2, values, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetPolygonStipple 128
-void
-__indirect_glGetPolygonStipple(GLubyte *mask)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_polygon_stipple_reply_t *reply =
- xcb_glx_get_polygon_stipple_reply(c,
- xcb_glx_get_polygon_stipple(c,
- gc->
- currentContextTag,
- 0),
- NULL);
- __glEmptyImage(gc, 3, 32, 32, 1, GL_COLOR_INDEX, GL_BITMAP,
- xcb_glx_get_polygon_stipple_data(reply), mask);
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetPolygonStipple, cmdlen);
- *(int32_t *) (pc + 0) = 0;
- __glXReadPixelReply(dpy, gc, 2, 32, 32, 1, GL_COLOR_INDEX, GL_BITMAP,
- mask, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexEnvfv 130
-void
-__indirect_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_envfv_reply_t *reply =
- xcb_glx_get_tex_envfv_reply(c,
- xcb_glx_get_tex_envfv(c,
- gc->
- currentContextTag,
- target, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_tex_envfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_tex_envfv_data(reply),
- xcb_glx_get_tex_envfv_data_length(reply) *
- sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexEnvfv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexEnviv 131
-void
-__indirect_glGetTexEnviv(GLenum target, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_enviv_reply_t *reply =
- xcb_glx_get_tex_enviv_reply(c,
- xcb_glx_get_tex_enviv(c,
- gc->
- currentContextTag,
- target, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_tex_enviv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_tex_enviv_data(reply),
- xcb_glx_get_tex_enviv_data_length(reply) *
- sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexEnviv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexGendv 132
-void
-__indirect_glGetTexGendv(GLenum coord, GLenum pname, GLdouble * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_gendv_reply_t *reply =
- xcb_glx_get_tex_gendv_reply(c,
- xcb_glx_get_tex_gendv(c,
- gc->
- currentContextTag,
- coord, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_tex_gendv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_tex_gendv_data(reply),
- xcb_glx_get_tex_gendv_data_length(reply) *
- sizeof(GLdouble));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexGendv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&coord), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 8, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexGenfv 133
-void
-__indirect_glGetTexGenfv(GLenum coord, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_genfv_reply_t *reply =
- xcb_glx_get_tex_genfv_reply(c,
- xcb_glx_get_tex_genfv(c,
- gc->
- currentContextTag,
- coord, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_tex_genfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_tex_genfv_data(reply),
- xcb_glx_get_tex_genfv_data_length(reply) *
- sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexGenfv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&coord), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexGeniv 134
-void
-__indirect_glGetTexGeniv(GLenum coord, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_geniv_reply_t *reply =
- xcb_glx_get_tex_geniv_reply(c,
- xcb_glx_get_tex_geniv(c,
- gc->
- currentContextTag,
- coord, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_tex_geniv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_tex_geniv_data(reply),
- xcb_glx_get_tex_geniv_data_length(reply) *
- sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexGeniv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&coord), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexImage 135
-void
-__indirect_glGetTexImage(GLenum target, GLint level, GLenum format,
- GLenum type, GLvoid * pixels)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 20;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_image_reply_t *reply =
- xcb_glx_get_tex_image_reply(c,
- xcb_glx_get_tex_image(c,
- gc->
- currentContextTag,
- target, level,
- format, type,
- state->
- storePack.
- swapEndian),
- NULL);
- if (reply->height == 0) {
- reply->height = 1;
- }
- if (reply->depth == 0) {
- reply->depth = 1;
- }
- __glEmptyImage(gc, 3, reply->width, reply->height, reply->depth,
- format, type, xcb_glx_get_tex_image_data(reply),
- pixels);
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexImage, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&level), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 12), (void *) (&type), 4);
- *(int32_t *) (pc + 16) = 0;
- *(int8_t *) (pc + 16) = state->storePack.swapEndian;
- __glXReadPixelReply(dpy, gc, 3, 0, 0, 0, format, type, pixels,
- GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexParameterfv 136
-void
-__indirect_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_parameterfv_reply_t *reply =
- xcb_glx_get_tex_parameterfv_reply(c,
- xcb_glx_get_tex_parameterfv(c,
- gc->
- currentContextTag,
- target,
- pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_tex_parameterfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_tex_parameterfv_data(reply),
- xcb_glx_get_tex_parameterfv_data_length(reply) *
- sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexParameterfv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexParameteriv 137
-void
-__indirect_glGetTexParameteriv(GLenum target, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_parameteriv_reply_t *reply =
- xcb_glx_get_tex_parameteriv_reply(c,
- xcb_glx_get_tex_parameteriv(c,
- gc->
- currentContextTag,
- target,
- pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_tex_parameteriv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_tex_parameteriv_data(reply),
- xcb_glx_get_tex_parameteriv_data_length(reply) *
- sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexParameteriv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexLevelParameterfv 138
-void
-__indirect_glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname,
- GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 12;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_level_parameterfv_reply_t *reply =
- xcb_glx_get_tex_level_parameterfv_reply(c,
- xcb_glx_get_tex_level_parameterfv
- (c, gc->currentContextTag,
- target, level, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_tex_level_parameterfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params,
- xcb_glx_get_tex_level_parameterfv_data(reply),
- xcb_glx_get_tex_level_parameterfv_data_length(reply)
- * sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexLevelParameterfv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&level), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetTexLevelParameteriv 139
-void
-__indirect_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname,
- GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 12;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_tex_level_parameteriv_reply_t *reply =
- xcb_glx_get_tex_level_parameteriv_reply(c,
- xcb_glx_get_tex_level_parameteriv
- (c, gc->currentContextTag,
- target, level, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_tex_level_parameteriv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params,
- xcb_glx_get_tex_level_parameteriv_data(reply),
- xcb_glx_get_tex_level_parameteriv_data_length(reply)
- * sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetTexLevelParameteriv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&level), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_IsList 141
-GLboolean
-__indirect_glIsList(GLuint list)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLboolean retval = (GLboolean) 0;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_is_list_reply_t *reply =
- xcb_glx_is_list_reply(c,
- xcb_glx_is_list(c, gc->currentContextTag,
- list), NULL);
- retval = reply->ret_val;
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_IsList, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&list), 4);
- retval = (GLboolean) __glXReadReply(dpy, 0, NULL, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return retval;
-}
-
-#define X_GLrop_DepthRange 174
-void
-__indirect_glDepthRange(GLclampd zNear, GLclampd zFar)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_DepthRange, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&zNear), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&zFar), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Frustum 175
-void
-__indirect_glFrustum(GLdouble left, GLdouble right, GLdouble bottom,
- GLdouble top, GLdouble zNear, GLdouble zFar)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 52;
- emit_header(gc->pc, X_GLrop_Frustum, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&left), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&right), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&bottom), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&top), 8);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&zNear), 8);
- (void) memcpy((void *) (gc->pc + 44), (void *) (&zFar), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LoadIdentity 176
-void
-__indirect_glLoadIdentity(void)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 4;
- emit_header(gc->pc, X_GLrop_LoadIdentity, cmdlen);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LoadMatrixf 177
-void
-__indirect_glLoadMatrixf(const GLfloat * m)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 68;
- emit_header(gc->pc, X_GLrop_LoadMatrixf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (m), 64);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_LoadMatrixd 178
-void
-__indirect_glLoadMatrixd(const GLdouble * m)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 132;
- emit_header(gc->pc, X_GLrop_LoadMatrixd, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (m), 128);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MatrixMode 179
-void
-__indirect_glMatrixMode(GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_MatrixMode, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultMatrixf 180
-void
-__indirect_glMultMatrixf(const GLfloat * m)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 68;
- emit_header(gc->pc, X_GLrop_MultMatrixf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (m), 64);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultMatrixd 181
-void
-__indirect_glMultMatrixd(const GLdouble * m)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 132;
- emit_header(gc->pc, X_GLrop_MultMatrixd, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (m), 128);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Ortho 182
-void
-__indirect_glOrtho(GLdouble left, GLdouble right, GLdouble bottom,
- GLdouble top, GLdouble zNear, GLdouble zFar)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 52;
- emit_header(gc->pc, X_GLrop_Ortho, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&left), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&right), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&bottom), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&top), 8);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&zNear), 8);
- (void) memcpy((void *) (gc->pc + 44), (void *) (&zFar), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PopMatrix 183
-void
-__indirect_glPopMatrix(void)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 4;
- emit_header(gc->pc, X_GLrop_PopMatrix, cmdlen);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PushMatrix 184
-void
-__indirect_glPushMatrix(void)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 4;
- emit_header(gc->pc, X_GLrop_PushMatrix, cmdlen);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Rotated 185
-void
-__indirect_glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
- emit_header(gc->pc, X_GLrop_Rotated, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&angle), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&z), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Rotatef 186
-void
-__indirect_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Rotatef, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&angle), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Scaled 187
-void
-__indirect_glScaled(GLdouble x, GLdouble y, GLdouble z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_Scaled, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Scalef 188
-void
-__indirect_glScalef(GLfloat x, GLfloat y, GLfloat z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Scalef, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Translated 189
-void
-__indirect_glTranslated(GLdouble x, GLdouble y, GLdouble z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_Translated, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Translatef 190
-void
-__indirect_glTranslatef(GLfloat x, GLfloat y, GLfloat z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Translatef, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Viewport 191
-void
-__indirect_glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Viewport, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&height), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_BindTexture 4117
-void
-__indirect_glBindTexture(GLenum target, GLuint texture)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_BindTexture, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&texture), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Indexubv 194
-void
-__indirect_glIndexub(GLubyte c)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Indexubv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&c), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Indexubv 194
-void
-__indirect_glIndexubv(const GLubyte *c)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_Indexubv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (c), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PolygonOffset 192
-void
-__indirect_glPolygonOffset(GLfloat factor, GLfloat units)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_PolygonOffset, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&factor), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&units), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CopyTexImage1D 4119
-void
-__indirect_glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat,
- GLint x, GLint y, GLsizei width, GLint border)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 32;
- emit_header(gc->pc, X_GLrop_CopyTexImage1D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&internalformat), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&border), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CopyTexImage2D 4120
-void
-__indirect_glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat,
- GLint x, GLint y, GLsizei width, GLsizei height,
- GLint border)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
- emit_header(gc->pc, X_GLrop_CopyTexImage2D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&internalformat), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&height), 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&border), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CopyTexSubImage1D 4121
-void
-__indirect_glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset,
- GLint x, GLint y, GLsizei width)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_CopyTexSubImage1D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&xoffset), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&width), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CopyTexSubImage2D 4122
-void
-__indirect_glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset,
- GLint yoffset, GLint x, GLint y, GLsizei width,
- GLsizei height)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 36;
- emit_header(gc->pc, X_GLrop_CopyTexSubImage2D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&xoffset), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&yoffset), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&height), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLsop_DeleteTextures 144
-void
-__indirect_glDeleteTextures(GLsizei n, const GLuint * textures)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 4));
-#endif
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_delete_textures(c, gc->currentContextTag, n, textures);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_DeleteTextures, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) memcpy((void *) (pc + 4), (void *) (textures), safe_mul(n, 4));
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_DeleteTexturesEXT 12
-void
-glDeleteTexturesEXT(GLsizei n, const GLuint * textures)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLDELETETEXTURESEXTPROC p =
- (PFNGLDELETETEXTURESEXTPROC) disp_table[327];
- p(n, textures);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivate,
- X_GLvop_DeleteTexturesEXT, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) memcpy((void *) (pc + 4), (void *) (textures),
- safe_mul(n, 4));
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GenTextures 145
-void
-__indirect_glGenTextures(GLsizei n, GLuint * textures)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_gen_textures_reply_t *reply =
- xcb_glx_gen_textures_reply(c,
- xcb_glx_gen_textures(c,
- gc->
- currentContextTag,
- n), NULL);
- (void) memcpy(textures, xcb_glx_gen_textures_data(reply),
- xcb_glx_gen_textures_data_length(reply) *
- sizeof(GLuint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GenTextures, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) __glXReadReply(dpy, 4, textures, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GenTexturesEXT 13
-void
-glGenTexturesEXT(GLsizei n, GLuint * textures)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGENTEXTURESEXTPROC p = (PFNGLGENTEXTURESEXTPROC) disp_table[328];
- p(n, textures);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 4;
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GenTexturesEXT, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) __glXReadReply(dpy, 4, textures, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_IsTexture 146
-GLboolean
-__indirect_glIsTexture(GLuint texture)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLboolean retval = (GLboolean) 0;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_is_texture_reply_t *reply =
- xcb_glx_is_texture_reply(c,
- xcb_glx_is_texture(c,
- gc->currentContextTag,
- texture), NULL);
- retval = reply->ret_val;
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_IsTexture, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&texture), 4);
- retval = (GLboolean) __glXReadReply(dpy, 0, NULL, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return retval;
-}
-
-#define X_GLvop_IsTextureEXT 14
-GLboolean
-glIsTextureEXT(GLuint texture)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLISTEXTUREEXTPROC p = (PFNGLISTEXTUREEXTPROC) disp_table[330];
- return p(texture);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLboolean retval = (GLboolean) 0;
- const GLuint cmdlen = 4;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_IsTextureEXT, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&texture), 4);
- retval = (GLboolean) __glXReadReply(dpy, 0, NULL, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return retval;
- }
-}
-
-#define X_GLrop_PrioritizeTextures 4118
-void
-__indirect_glPrioritizeTextures(GLsizei n, const GLuint * textures,
- const GLclampf * priorities)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen =
- 8 + safe_pad(safe_mul(n, 4)) + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_PrioritizeTextures, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (textures),
- safe_mul(n, 4));
- (void) memcpy((void *) (gc->pc + 8 + safe_mul(n, 4)),
- (void *) (priorities), safe_mul(n, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-static void
-__glx_TexSubImage_1D2D(unsigned opcode, unsigned dim, GLenum target,
- GLint level, GLint xoffset, GLint yoffset,
- GLsizei width, GLsizei height, GLenum format,
- GLenum type, const GLvoid * pixels)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- (pixels != NULL) ? __glImageSize(width, height, 1, format, type,
- target) : 0;
- const GLuint cmdlen = 60 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(gc->currentDpy != NULL, 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, opcode, cmdlen);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&xoffset), 4);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&yoffset), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 44), (void *) (&height), 4);
- (void) memcpy((void *) (gc->pc + 48), (void *) (&format), 4);
- (void) memcpy((void *) (gc->pc + 52), (void *) (&type), 4);
- (void) memset((void *) (gc->pc + 56), 0, 4);
- if (compsize > 0) {
- gc->fillImage(gc, dim, width, height, 1, format, type, pixels,
- gc->pc + 60, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_2D,
- default_pixel_store_2D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = opcode;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 28), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 32), (void *) (&level), 4);
- (void) memcpy((void *) (pc + 36), (void *) (&xoffset), 4);
- (void) memcpy((void *) (pc + 40), (void *) (&yoffset), 4);
- (void) memcpy((void *) (pc + 44), (void *) (&width), 4);
- (void) memcpy((void *) (pc + 48), (void *) (&height), 4);
- (void) memcpy((void *) (pc + 52), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 56), (void *) (&type), 4);
- (void) memset((void *) (pc + 60), 0, 4);
- __glXSendLargeImage(gc, compsize, dim, width, height, 1, format,
- type, pixels, pc + 64, pc + 8);
- }
- }
-}
-
-#define X_GLrop_TexSubImage1D 4099
-void
-__indirect_glTexSubImage1D(GLenum target, GLint level, GLint xoffset,
- GLsizei width, GLenum format, GLenum type,
- const GLvoid * pixels)
-{
- __glx_TexSubImage_1D2D(X_GLrop_TexSubImage1D, 1, target, level, xoffset,
- 1, width, 1, format, type, pixels);
-}
-
-#define X_GLrop_TexSubImage2D 4100
-void
-__indirect_glTexSubImage2D(GLenum target, GLint level, GLint xoffset,
- GLint yoffset, GLsizei width, GLsizei height,
- GLenum format, GLenum type, const GLvoid * pixels)
-{
- __glx_TexSubImage_1D2D(X_GLrop_TexSubImage2D, 2, target, level, xoffset,
- yoffset, width, height, format, type, pixels);
-}
-
-#define X_GLrop_BlendColor 4096
-void
-__indirect_glBlendColor(GLclampf red, GLclampf green, GLclampf blue,
- GLclampf alpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_BlendColor, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&alpha), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_BlendEquation 4097
-void
-__indirect_glBlendEquation(GLenum mode)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_BlendEquation, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&mode), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ColorTable 2053
-void
-__indirect_glColorTable(GLenum target, GLenum internalformat, GLsizei width,
- GLenum format, GLenum type, const GLvoid * table)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- (table != NULL) ? __glImageSize(width, 1, 1, format, type,
- target) : 0;
- const GLuint cmdlen = 44 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(gc->currentDpy != NULL, 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_ColorTable, cmdlen);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&internalformat),
- 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&format), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&type), 4);
- if (compsize > 0) {
- gc->fillImage(gc, 1, width, 1, 1, format, type, table,
- gc->pc + 44, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_1D,
- default_pixel_store_1D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_ColorTable;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 28), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 32), (void *) (&internalformat), 4);
- (void) memcpy((void *) (pc + 36), (void *) (&width), 4);
- (void) memcpy((void *) (pc + 40), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 44), (void *) (&type), 4);
- __glXSendLargeImage(gc, compsize, 1, width, 1, 1, format, type,
- table, pc + 48, pc + 8);
- }
- }
-}
-
-#define X_GLrop_ColorTableParameterfv 2054
-void
-__indirect_glColorTableParameterfv(GLenum target, GLenum pname,
- const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glColorTableParameterfv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_ColorTableParameterfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ColorTableParameteriv 2055
-void
-__indirect_glColorTableParameteriv(GLenum target, GLenum pname,
- const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glColorTableParameteriv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_ColorTableParameteriv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CopyColorTable 2056
-void
-__indirect_glCopyColorTable(GLenum target, GLenum internalformat, GLint x,
- GLint y, GLsizei width)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_CopyColorTable, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&internalformat), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&width), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLsop_GetColorTable 147
-void
-__indirect_glGetColorTable(GLenum target, GLenum format, GLenum type,
- GLvoid * table)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 16;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_color_table_reply_t *reply =
- xcb_glx_get_color_table_reply(c,
- xcb_glx_get_color_table(c,
- gc->
- currentContextTag,
- target,
- format,
- type,
- state->
- storePack.
- swapEndian),
- NULL);
- __glEmptyImage(gc, 3, reply->width, 1, 1, format, type,
- xcb_glx_get_color_table_data(reply), table);
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetColorTable, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&type), 4);
- *(int32_t *) (pc + 12) = 0;
- *(int8_t *) (pc + 12) = state->storePack.swapEndian;
- __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, table,
- GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetColorTableSGI 4098
-void
-gl_dispatch_stub_343(GLenum target, GLenum format, GLenum type,
- GLvoid * table)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETCOLORTABLESGIPROC p =
- (PFNGLGETCOLORTABLESGIPROC) disp_table[343];
- p(target, format, type, table);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 16;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetColorTableSGI, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&type), 4);
- *(int32_t *) (pc + 12) = 0;
- *(int8_t *) (pc + 12) = state->storePack.swapEndian;
- __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, table,
- GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetColorTableParameterfv 148
-void
-__indirect_glGetColorTableParameterfv(GLenum target, GLenum pname,
- GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_color_table_parameterfv_reply_t *reply =
- xcb_glx_get_color_table_parameterfv_reply(c,
- xcb_glx_get_color_table_parameterfv
- (c,
- gc->currentContextTag,
- target, pname), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_color_table_parameterfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params,
- xcb_glx_get_color_table_parameterfv_data(reply),
- xcb_glx_get_color_table_parameterfv_data_length
- (reply) * sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetColorTableParameterfv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetColorTableParameterfvSGI 4099
-void
-gl_dispatch_stub_344(GLenum target, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETCOLORTABLEPARAMETERFVSGIPROC p =
- (PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) disp_table[344];
- p(target, pname, params);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetColorTableParameterfvSGI,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetColorTableParameteriv 149
-void
-__indirect_glGetColorTableParameteriv(GLenum target, GLenum pname,
- GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_color_table_parameteriv_reply_t *reply =
- xcb_glx_get_color_table_parameteriv_reply(c,
- xcb_glx_get_color_table_parameteriv
- (c,
- gc->currentContextTag,
- target, pname), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_color_table_parameteriv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params,
- xcb_glx_get_color_table_parameteriv_data(reply),
- xcb_glx_get_color_table_parameteriv_data_length
- (reply) * sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetColorTableParameteriv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetColorTableParameterivSGI 4100
-void
-gl_dispatch_stub_345(GLenum target, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETCOLORTABLEPARAMETERIVSGIPROC p =
- (PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) disp_table[345];
- p(target, pname, params);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetColorTableParameterivSGI,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLrop_ColorSubTable 195
-void
-__indirect_glColorSubTable(GLenum target, GLsizei start, GLsizei count,
- GLenum format, GLenum type, const GLvoid * data)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- (data != NULL) ? __glImageSize(count, 1, 1, format, type, target) : 0;
- const GLuint cmdlen = 44 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(gc->currentDpy != NULL, 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_ColorSubTable, cmdlen);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&start), 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&count), 4);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&format), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&type), 4);
- if (compsize > 0) {
- gc->fillImage(gc, 1, count, 1, 1, format, type, data,
- gc->pc + 44, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_1D,
- default_pixel_store_1D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_ColorSubTable;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 28), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 32), (void *) (&start), 4);
- (void) memcpy((void *) (pc + 36), (void *) (&count), 4);
- (void) memcpy((void *) (pc + 40), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 44), (void *) (&type), 4);
- __glXSendLargeImage(gc, compsize, 1, count, 1, 1, format, type,
- data, pc + 48, pc + 8);
- }
- }
-}
-
-#define X_GLrop_CopyColorSubTable 196
-void
-__indirect_glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y,
- GLsizei width)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_CopyColorSubTable, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&start), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&width), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static void
-__glx_ConvolutionFilter_1D2D(unsigned opcode, unsigned dim, GLenum target,
- GLenum internalformat, GLsizei width,
- GLsizei height, GLenum format, GLenum type,
- const GLvoid * image)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- (image != NULL) ? __glImageSize(width, height, 1, format, type,
- target) : 0;
- const GLuint cmdlen = 48 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(gc->currentDpy != NULL, 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, opcode, cmdlen);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&internalformat),
- 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&height), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&format), 4);
- (void) memcpy((void *) (gc->pc + 44), (void *) (&type), 4);
- if (compsize > 0) {
- gc->fillImage(gc, dim, width, height, 1, format, type, image,
- gc->pc + 48, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_2D,
- default_pixel_store_2D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = opcode;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 28), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 32), (void *) (&internalformat), 4);
- (void) memcpy((void *) (pc + 36), (void *) (&width), 4);
- (void) memcpy((void *) (pc + 40), (void *) (&height), 4);
- (void) memcpy((void *) (pc + 44), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 48), (void *) (&type), 4);
- __glXSendLargeImage(gc, compsize, dim, width, height, 1, format,
- type, image, pc + 52, pc + 8);
- }
- }
-}
-
-#define X_GLrop_ConvolutionFilter1D 4101
-void
-__indirect_glConvolutionFilter1D(GLenum target, GLenum internalformat,
- GLsizei width, GLenum format, GLenum type,
- const GLvoid * image)
-{
- __glx_ConvolutionFilter_1D2D(X_GLrop_ConvolutionFilter1D, 1, target,
- internalformat, width, 1, format, type,
- image);
-}
-
-#define X_GLrop_ConvolutionFilter2D 4102
-void
-__indirect_glConvolutionFilter2D(GLenum target, GLenum internalformat,
- GLsizei width, GLsizei height, GLenum format,
- GLenum type, const GLvoid * image)
-{
- __glx_ConvolutionFilter_1D2D(X_GLrop_ConvolutionFilter2D, 2, target,
- internalformat, width, height, format, type,
- image);
-}
-
-#define X_GLrop_ConvolutionParameterf 4103
-void
-__indirect_glConvolutionParameterf(GLenum target, GLenum pname,
- GLfloat params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_ConvolutionParameterf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&params), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ConvolutionParameterfv 4104
-void
-__indirect_glConvolutionParameterfv(GLenum target, GLenum pname,
- const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glConvolutionParameterfv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_ConvolutionParameterfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ConvolutionParameteri 4105
-void
-__indirect_glConvolutionParameteri(GLenum target, GLenum pname, GLint params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_ConvolutionParameteri, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&params), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ConvolutionParameteriv 4106
-void
-__indirect_glConvolutionParameteriv(GLenum target, GLenum pname,
- const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glConvolutionParameteriv_size(pname);
- const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_ConvolutionParameteriv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CopyConvolutionFilter1D 4107
-void
-__indirect_glCopyConvolutionFilter1D(GLenum target, GLenum internalformat,
- GLint x, GLint y, GLsizei width)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_CopyConvolutionFilter1D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&internalformat), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&width), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_CopyConvolutionFilter2D 4108
-void
-__indirect_glCopyConvolutionFilter2D(GLenum target, GLenum internalformat,
- GLint x, GLint y, GLsizei width,
- GLsizei height)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_CopyConvolutionFilter2D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&internalformat), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&height), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLsop_GetConvolutionFilter 150
-void
-__indirect_glGetConvolutionFilter(GLenum target, GLenum format, GLenum type,
- GLvoid * image)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 16;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_convolution_filter_reply_t *reply =
- xcb_glx_get_convolution_filter_reply(c,
- xcb_glx_get_convolution_filter
- (c, gc->currentContextTag,
- target, format, type,
- state->storePack.
- swapEndian), NULL);
- if (reply->height == 0) {
- reply->height = 1;
- }
- __glEmptyImage(gc, 3, reply->width, reply->height, 1, format, type,
- xcb_glx_get_convolution_filter_data(reply), image);
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetConvolutionFilter, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&type), 4);
- *(int32_t *) (pc + 12) = 0;
- *(int8_t *) (pc + 12) = state->storePack.swapEndian;
- __glXReadPixelReply(dpy, gc, 2, 0, 0, 0, format, type, image,
- GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetConvolutionFilterEXT 1
-void
-gl_dispatch_stub_356(GLenum target, GLenum format, GLenum type,
- GLvoid * image)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETCONVOLUTIONFILTEREXTPROC p =
- (PFNGLGETCONVOLUTIONFILTEREXTPROC) disp_table[356];
- p(target, format, type, image);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 16;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetConvolutionFilterEXT,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&type), 4);
- *(int32_t *) (pc + 12) = 0;
- *(int8_t *) (pc + 12) = state->storePack.swapEndian;
- __glXReadPixelReply(dpy, gc, 2, 0, 0, 0, format, type, image,
- GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetConvolutionParameterfv 151
-void
-__indirect_glGetConvolutionParameterfv(GLenum target, GLenum pname,
- GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_convolution_parameterfv_reply_t *reply =
- xcb_glx_get_convolution_parameterfv_reply(c,
- xcb_glx_get_convolution_parameterfv
- (c,
- gc->currentContextTag,
- target, pname), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_convolution_parameterfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params,
- xcb_glx_get_convolution_parameterfv_data(reply),
- xcb_glx_get_convolution_parameterfv_data_length
- (reply) * sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetConvolutionParameterfv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetConvolutionParameterfvEXT 2
-void
-gl_dispatch_stub_357(GLenum target, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC p =
- (PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) disp_table[357];
- p(target, pname, params);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetConvolutionParameterfvEXT,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetConvolutionParameteriv 152
-void
-__indirect_glGetConvolutionParameteriv(GLenum target, GLenum pname,
- GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_convolution_parameteriv_reply_t *reply =
- xcb_glx_get_convolution_parameteriv_reply(c,
- xcb_glx_get_convolution_parameteriv
- (c,
- gc->currentContextTag,
- target, pname), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_convolution_parameteriv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params,
- xcb_glx_get_convolution_parameteriv_data(reply),
- xcb_glx_get_convolution_parameteriv_data_length
- (reply) * sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetConvolutionParameteriv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetConvolutionParameterivEXT 3
-void
-gl_dispatch_stub_358(GLenum target, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC p =
- (PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) disp_table[358];
- p(target, pname, params);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetConvolutionParameterivEXT,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetHistogram 154
-void
-__indirect_glGetHistogram(GLenum target, GLboolean reset, GLenum format,
- GLenum type, GLvoid * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 16;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_histogram_reply_t *reply =
- xcb_glx_get_histogram_reply(c,
- xcb_glx_get_histogram(c,
- gc->
- currentContextTag,
- target, reset,
- format, type,
- state->
- storePack.
- swapEndian),
- NULL);
- __glEmptyImage(gc, 3, reply->width, 1, 1, format, type,
- xcb_glx_get_histogram_data(reply), values);
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetHistogram, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&type), 4);
- *(int32_t *) (pc + 12) = 0;
- *(int8_t *) (pc + 12) = state->storePack.swapEndian;
- *(int8_t *) (pc + 13) = reset;
- __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, values,
- GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetHistogramEXT 5
-void
-gl_dispatch_stub_361(GLenum target, GLboolean reset, GLenum format,
- GLenum type, GLvoid * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETHISTOGRAMEXTPROC p =
- (PFNGLGETHISTOGRAMEXTPROC) disp_table[361];
- p(target, reset, format, type, values);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 16;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetHistogramEXT, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&type), 4);
- *(int32_t *) (pc + 12) = 0;
- *(int8_t *) (pc + 12) = state->storePack.swapEndian;
- *(int8_t *) (pc + 13) = reset;
- __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, values,
- GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetHistogramParameterfv 155
-void
-__indirect_glGetHistogramParameterfv(GLenum target, GLenum pname,
- GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_histogram_parameterfv_reply_t *reply =
- xcb_glx_get_histogram_parameterfv_reply(c,
- xcb_glx_get_histogram_parameterfv
- (c, gc->currentContextTag,
- target, pname), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_histogram_parameterfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params,
- xcb_glx_get_histogram_parameterfv_data(reply),
- xcb_glx_get_histogram_parameterfv_data_length(reply)
- * sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetHistogramParameterfv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetHistogramParameterfvEXT 6
-void
-gl_dispatch_stub_362(GLenum target, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETHISTOGRAMPARAMETERFVEXTPROC p =
- (PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) disp_table[362];
- p(target, pname, params);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetHistogramParameterfvEXT,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetHistogramParameteriv 156
-void
-__indirect_glGetHistogramParameteriv(GLenum target, GLenum pname,
- GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_histogram_parameteriv_reply_t *reply =
- xcb_glx_get_histogram_parameteriv_reply(c,
- xcb_glx_get_histogram_parameteriv
- (c, gc->currentContextTag,
- target, pname), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_histogram_parameteriv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params,
- xcb_glx_get_histogram_parameteriv_data(reply),
- xcb_glx_get_histogram_parameteriv_data_length(reply)
- * sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetHistogramParameteriv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetHistogramParameterivEXT 7
-void
-gl_dispatch_stub_363(GLenum target, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETHISTOGRAMPARAMETERIVEXTPROC p =
- (PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) disp_table[363];
- p(target, pname, params);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetHistogramParameterivEXT,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetMinmax 157
-void
-__indirect_glGetMinmax(GLenum target, GLboolean reset, GLenum format,
- GLenum type, GLvoid * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 16;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_minmax_reply_t *reply =
- xcb_glx_get_minmax_reply(c,
- xcb_glx_get_minmax(c,
- gc->currentContextTag,
- target, reset, format,
- type,
- state->storePack.
- swapEndian), NULL);
- __glEmptyImage(gc, 3, 2, 1, 1, format, type,
- xcb_glx_get_minmax_data(reply), values);
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetMinmax, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&type), 4);
- *(int32_t *) (pc + 12) = 0;
- *(int8_t *) (pc + 12) = state->storePack.swapEndian;
- *(int8_t *) (pc + 13) = reset;
- __glXReadPixelReply(dpy, gc, 1, 2, 1, 1, format, type, values,
- GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetMinmaxEXT 8
-void
-gl_dispatch_stub_364(GLenum target, GLboolean reset, GLenum format,
- GLenum type, GLvoid * values)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETMINMAXEXTPROC p = (PFNGLGETMINMAXEXTPROC) disp_table[364];
- p(target, reset, format, type, values);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- const __GLXattribute *const state = gc->client_state_private;
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 16;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetMinmaxEXT, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&type), 4);
- *(int32_t *) (pc + 12) = 0;
- *(int8_t *) (pc + 12) = state->storePack.swapEndian;
- *(int8_t *) (pc + 13) = reset;
- __glXReadPixelReply(dpy, gc, 1, 2, 1, 1, format, type, values,
- GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetMinmaxParameterfv 158
-void
-__indirect_glGetMinmaxParameterfv(GLenum target, GLenum pname,
- GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_minmax_parameterfv_reply_t *reply =
- xcb_glx_get_minmax_parameterfv_reply(c,
- xcb_glx_get_minmax_parameterfv
- (c, gc->currentContextTag,
- target, pname), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_minmax_parameterfv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_minmax_parameterfv_data(reply),
- xcb_glx_get_minmax_parameterfv_data_length(reply) *
- sizeof(GLfloat));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetMinmaxParameterfv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetMinmaxParameterfvEXT 9
-void
-gl_dispatch_stub_365(GLenum target, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETMINMAXPARAMETERFVEXTPROC p =
- (PFNGLGETMINMAXPARAMETERFVEXTPROC) disp_table[365];
- p(target, pname, params);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetMinmaxParameterfvEXT,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLsop_GetMinmaxParameteriv 159
-void
-__indirect_glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_minmax_parameteriv_reply_t *reply =
- xcb_glx_get_minmax_parameteriv_reply(c,
- xcb_glx_get_minmax_parameteriv
- (c, gc->currentContextTag,
- target, pname), NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_minmax_parameteriv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_minmax_parameteriv_data(reply),
- xcb_glx_get_minmax_parameteriv_data_length(reply) *
- sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetMinmaxParameteriv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLvop_GetMinmaxParameterivEXT 10
-void
-gl_dispatch_stub_366(GLenum target, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETMINMAXPARAMETERIVEXTPROC p =
- (PFNGLGETMINMAXPARAMETERIVEXTPROC) disp_table[366];
- p(target, pname, params);
- } else
-#endif
- {
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetMinmaxParameterivEXT,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
- }
-}
-
-#define X_GLrop_Histogram 4110
-void
-__indirect_glHistogram(GLenum target, GLsizei width, GLenum internalformat,
- GLboolean sink)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_Histogram, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&internalformat), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&sink), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_Minmax 4111
-void
-__indirect_glMinmax(GLenum target, GLenum internalformat, GLboolean sink)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_Minmax, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&internalformat), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&sink), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ResetHistogram 4112
-void
-__indirect_glResetHistogram(GLenum target)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ResetHistogram, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ResetMinmax 4113
-void
-__indirect_glResetMinmax(GLenum target)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ResetMinmax, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-static void
-__glx_TexImage_3D4D(unsigned opcode, unsigned dim, GLenum target, GLint level,
- GLint internalformat, GLsizei width, GLsizei height,
- GLsizei depth, GLsizei extent, GLint border,
- GLenum format, GLenum type, const GLvoid * pixels)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- (pixels != NULL) ? __glImageSize(width, height, depth, format, type,
- target) : 0;
- const GLuint cmdlen = 84 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(gc->currentDpy != NULL, 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, opcode, cmdlen);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 44), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 48), (void *) (&internalformat),
- 4);
- (void) memcpy((void *) (gc->pc + 52), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 56), (void *) (&height), 4);
- (void) memcpy((void *) (gc->pc + 60), (void *) (&depth), 4);
- (void) memcpy((void *) (gc->pc + 64), (void *) (&extent), 4);
- (void) memcpy((void *) (gc->pc + 68), (void *) (&border), 4);
- (void) memcpy((void *) (gc->pc + 72), (void *) (&format), 4);
- (void) memcpy((void *) (gc->pc + 76), (void *) (&type), 4);
- (void) memcpy((void *) (gc->pc + 80),
- (void *) ((pixels == NULL) ? one : zero), 4);
- if (compsize > 0) {
- gc->fillImage(gc, dim, width, height, depth, format, type,
- pixels, gc->pc + 84, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_4D,
- default_pixel_store_4D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = opcode;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 44), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 48), (void *) (&level), 4);
- (void) memcpy((void *) (pc + 52), (void *) (&internalformat), 4);
- (void) memcpy((void *) (pc + 56), (void *) (&width), 4);
- (void) memcpy((void *) (pc + 60), (void *) (&height), 4);
- (void) memcpy((void *) (pc + 64), (void *) (&depth), 4);
- (void) memcpy((void *) (pc + 68), (void *) (&extent), 4);
- (void) memcpy((void *) (pc + 72), (void *) (&border), 4);
- (void) memcpy((void *) (pc + 76), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 80), (void *) (&type), 4);
- (void) memcpy((void *) (pc + 84), zero, 4);
- __glXSendLargeImage(gc, compsize, dim, width, height, depth,
- format, type, pixels, pc + 88, pc + 8);
- }
- }
-}
-
-#define X_GLrop_TexImage3D 4114
-void
-__indirect_glTexImage3D(GLenum target, GLint level, GLint internalformat,
- GLsizei width, GLsizei height, GLsizei depth,
- GLint border, GLenum format, GLenum type,
- const GLvoid * pixels)
-{
- __glx_TexImage_3D4D(X_GLrop_TexImage3D, 3, target, level, internalformat,
- width, height, depth, 1, border, format, type,
- pixels);
-}
-
-static void
-__glx_TexSubImage_3D4D(unsigned opcode, unsigned dim, GLenum target,
- GLint level, GLint xoffset, GLint yoffset,
- GLint zoffset, GLint woffset, GLsizei width,
- GLsizei height, GLsizei depth, GLsizei extent,
- GLenum format, GLenum type, const GLvoid * pixels)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize =
- (pixels != NULL) ? __glImageSize(width, height, depth, format, type,
- target) : 0;
- const GLuint cmdlen = 92 + safe_pad(compsize);
- if (0 + safe_pad(compsize) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(gc->currentDpy != NULL, 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, opcode, cmdlen);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 44), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 48), (void *) (&xoffset), 4);
- (void) memcpy((void *) (gc->pc + 52), (void *) (&yoffset), 4);
- (void) memcpy((void *) (gc->pc + 56), (void *) (&zoffset), 4);
- (void) memcpy((void *) (gc->pc + 60), (void *) (&woffset), 4);
- (void) memcpy((void *) (gc->pc + 64), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 68), (void *) (&height), 4);
- (void) memcpy((void *) (gc->pc + 72), (void *) (&depth), 4);
- (void) memcpy((void *) (gc->pc + 76), (void *) (&extent), 4);
- (void) memcpy((void *) (gc->pc + 80), (void *) (&format), 4);
- (void) memcpy((void *) (gc->pc + 84), (void *) (&type), 4);
- (void) memset((void *) (gc->pc + 88), 0, 4);
- if (compsize > 0) {
- gc->fillImage(gc, dim, width, height, depth, format, type,
- pixels, gc->pc + 92, gc->pc + 4);
- } else {
- (void) memcpy(gc->pc + 4, default_pixel_store_4D,
- default_pixel_store_4D_size);
- }
- gc->pc += cmdlen;
- if (gc->pc > gc->limit) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = opcode;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 44), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 48), (void *) (&level), 4);
- (void) memcpy((void *) (pc + 52), (void *) (&xoffset), 4);
- (void) memcpy((void *) (pc + 56), (void *) (&yoffset), 4);
- (void) memcpy((void *) (pc + 60), (void *) (&zoffset), 4);
- (void) memcpy((void *) (pc + 64), (void *) (&woffset), 4);
- (void) memcpy((void *) (pc + 68), (void *) (&width), 4);
- (void) memcpy((void *) (pc + 72), (void *) (&height), 4);
- (void) memcpy((void *) (pc + 76), (void *) (&depth), 4);
- (void) memcpy((void *) (pc + 80), (void *) (&extent), 4);
- (void) memcpy((void *) (pc + 84), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 88), (void *) (&type), 4);
- (void) memset((void *) (pc + 92), 0, 4);
- __glXSendLargeImage(gc, compsize, dim, width, height, depth,
- format, type, pixels, pc + 96, pc + 8);
- }
- }
-}
-
-#define X_GLrop_TexSubImage3D 4115
-void
-__indirect_glTexSubImage3D(GLenum target, GLint level, GLint xoffset,
- GLint yoffset, GLint zoffset, GLsizei width,
- GLsizei height, GLsizei depth, GLenum format,
- GLenum type, const GLvoid * pixels)
-{
- __glx_TexSubImage_3D4D(X_GLrop_TexSubImage3D, 3, target, level, xoffset,
- yoffset, zoffset, 1, width, height, depth, 1,
- format, type, pixels);
-}
-
-#define X_GLrop_CopyTexSubImage3D 4123
-void
-__indirect_glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset,
- GLint yoffset, GLint zoffset, GLint x, GLint y,
- GLsizei width, GLsizei height)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 40;
- emit_header(gc->pc, X_GLrop_CopyTexSubImage3D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&xoffset), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&yoffset), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&zoffset), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&height), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ActiveTexture 197
-void
-__indirect_glActiveTexture(GLenum texture)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ActiveTexture, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&texture), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord1dv 198
-void
-__indirect_glMultiTexCoord1d(GLenum target, GLdouble s)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord1dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord1dv 198
-void
-__indirect_glMultiTexCoord1dv(GLenum target, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord1dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord1fvARB 199
-void
-__indirect_glMultiTexCoord1fARB(GLenum target, GLfloat s)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_MultiTexCoord1fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord1fvARB 199
-void
-__indirect_glMultiTexCoord1fvARB(GLenum target, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_MultiTexCoord1fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord1iv 200
-void
-__indirect_glMultiTexCoord1i(GLenum target, GLint s)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_MultiTexCoord1iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord1iv 200
-void
-__indirect_glMultiTexCoord1iv(GLenum target, const GLint * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_MultiTexCoord1iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord1sv 201
-void
-__indirect_glMultiTexCoord1s(GLenum target, GLshort s)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_MultiTexCoord1sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord1sv 201
-void
-__indirect_glMultiTexCoord1sv(GLenum target, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_MultiTexCoord1sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord2dv 202
-void
-__indirect_glMultiTexCoord2d(GLenum target, GLdouble s, GLdouble t)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_MultiTexCoord2dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord2dv 202
-void
-__indirect_glMultiTexCoord2dv(GLenum target, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_MultiTexCoord2dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v), 16);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord2fvARB 203
-void
-__indirect_glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord2fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord2fvARB 203
-void
-__indirect_glMultiTexCoord2fvARB(GLenum target, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord2fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord2iv 204
-void
-__indirect_glMultiTexCoord2i(GLenum target, GLint s, GLint t)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord2iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord2iv 204
-void
-__indirect_glMultiTexCoord2iv(GLenum target, const GLint * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord2iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord2sv 205
-void
-__indirect_glMultiTexCoord2s(GLenum target, GLshort s, GLshort t)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_MultiTexCoord2sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&t), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord2sv 205
-void
-__indirect_glMultiTexCoord2sv(GLenum target, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_MultiTexCoord2sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord3dv 206
-void
-__indirect_glMultiTexCoord3d(GLenum target, GLdouble s, GLdouble t,
- GLdouble r)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 32;
- emit_header(gc->pc, X_GLrop_MultiTexCoord3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&r), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord3dv 206
-void
-__indirect_glMultiTexCoord3dv(GLenum target, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 32;
- emit_header(gc->pc, X_GLrop_MultiTexCoord3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v), 24);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord3fvARB 207
-void
-__indirect_glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t,
- GLfloat r)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_MultiTexCoord3fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&r), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord3fvARB 207
-void
-__indirect_glMultiTexCoord3fvARB(GLenum target, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_MultiTexCoord3fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 12);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord3iv 208
-void
-__indirect_glMultiTexCoord3i(GLenum target, GLint s, GLint t, GLint r)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_MultiTexCoord3iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&r), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord3iv 208
-void
-__indirect_glMultiTexCoord3iv(GLenum target, const GLint * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_MultiTexCoord3iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 12);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord3sv 209
-void
-__indirect_glMultiTexCoord3s(GLenum target, GLshort s, GLshort t, GLshort r)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&t), 2);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&r), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord3sv 209
-void
-__indirect_glMultiTexCoord3sv(GLenum target, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 6);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord4dv 210
-void
-__indirect_glMultiTexCoord4d(GLenum target, GLdouble s, GLdouble t,
- GLdouble r, GLdouble q)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 40;
- emit_header(gc->pc, X_GLrop_MultiTexCoord4dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&s), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&r), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&q), 8);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord4dv 210
-void
-__indirect_glMultiTexCoord4dv(GLenum target, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 40;
- emit_header(gc->pc, X_GLrop_MultiTexCoord4dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v), 32);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord4fvARB 211
-void
-__indirect_glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t,
- GLfloat r, GLfloat q)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_MultiTexCoord4fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&r), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&q), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord4fvARB 211
-void
-__indirect_glMultiTexCoord4fvARB(GLenum target, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_MultiTexCoord4fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord4iv 212
-void
-__indirect_glMultiTexCoord4i(GLenum target, GLint s, GLint t, GLint r,
- GLint q)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_MultiTexCoord4iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&t), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&r), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&q), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord4iv 212
-void
-__indirect_glMultiTexCoord4iv(GLenum target, const GLint * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_MultiTexCoord4iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord4sv 213
-void
-__indirect_glMultiTexCoord4s(GLenum target, GLshort s, GLshort t, GLshort r,
- GLshort q)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord4sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&s), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&t), 2);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&r), 2);
- (void) memcpy((void *) (gc->pc + 14), (void *) (&q), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_MultiTexCoord4sv 213
-void
-__indirect_glMultiTexCoord4sv(GLenum target, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_MultiTexCoord4sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SampleCoverage 229
-void
-__indirect_glSampleCoverage(GLclampf value, GLboolean invert)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_SampleCoverage, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&value), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&invert), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_BlendFuncSeparate 4134
-void
-__indirect_glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB,
- GLenum sfactorAlpha, GLenum dfactorAlpha)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_BlendFuncSeparate, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&sfactorRGB), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&dfactorRGB), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&sfactorAlpha), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&dfactorAlpha), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_FogCoorddv 4125
-void
-__indirect_glFogCoordd(GLdouble coord)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_FogCoorddv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&coord), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_FogCoorddv 4125
-void
-__indirect_glFogCoorddv(const GLdouble * coord)
-{
- generic_8_byte(X_GLrop_FogCoorddv, coord);
-}
-
-#define X_GLrop_PointParameterf 2065
-void
-__indirect_glPointParameterf(GLenum pname, GLfloat param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_PointParameterf, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PointParameterfv 2066
-void
-__indirect_glPointParameterfv(GLenum pname, const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glPointParameterfv_size(pname);
- const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_PointParameterfv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PointParameteri 4221
-void
-__indirect_glPointParameteri(GLenum pname, GLint param)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_PointParameteri, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&param), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_PointParameteriv 4222
-void
-__indirect_glPointParameteriv(GLenum pname, const GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint compsize = __glPointParameteriv_size(pname);
- const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 4));
- if (0 + safe_pad(safe_mul(compsize, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- emit_header(gc->pc, X_GLrop_PointParameteriv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pname), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (params),
- safe_mul(compsize, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3bv 4126
-void
-__indirect_glSecondaryColor3b(GLbyte red, GLbyte green, GLbyte blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_SecondaryColor3bv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 1);
- (void) memcpy((void *) (gc->pc + 5), (void *) (&green), 1);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&blue), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3bv 4126
-void
-__indirect_glSecondaryColor3bv(const GLbyte *v)
-{
- generic_3_byte(X_GLrop_SecondaryColor3bv, v);
-}
-
-#define X_GLrop_SecondaryColor3dv 4130
-void
-__indirect_glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_SecondaryColor3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&green), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&blue), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3dv 4130
-void
-__indirect_glSecondaryColor3dv(const GLdouble * v)
-{
- generic_24_byte(X_GLrop_SecondaryColor3dv, v);
-}
-
-#define X_GLrop_SecondaryColor3iv 4128
-void
-__indirect_glSecondaryColor3i(GLint red, GLint green, GLint blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_SecondaryColor3iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3iv 4128
-void
-__indirect_glSecondaryColor3iv(const GLint * v)
-{
- generic_12_byte(X_GLrop_SecondaryColor3iv, v);
-}
-
-#define X_GLrop_SecondaryColor3sv 4127
-void
-__indirect_glSecondaryColor3s(GLshort red, GLshort green, GLshort blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_SecondaryColor3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&green), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&blue), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3sv 4127
-void
-__indirect_glSecondaryColor3sv(const GLshort * v)
-{
- generic_6_byte(X_GLrop_SecondaryColor3sv, v);
-}
-
-#define X_GLrop_SecondaryColor3ubv 4131
-void
-__indirect_glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_SecondaryColor3ubv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 1);
- (void) memcpy((void *) (gc->pc + 5), (void *) (&green), 1);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&blue), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3ubv 4131
-void
-__indirect_glSecondaryColor3ubv(const GLubyte *v)
-{
- generic_3_byte(X_GLrop_SecondaryColor3ubv, v);
-}
-
-#define X_GLrop_SecondaryColor3uiv 4133
-void
-__indirect_glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_SecondaryColor3uiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3uiv 4133
-void
-__indirect_glSecondaryColor3uiv(const GLuint * v)
-{
- generic_12_byte(X_GLrop_SecondaryColor3uiv, v);
-}
-
-#define X_GLrop_SecondaryColor3usv 4132
-void
-__indirect_glSecondaryColor3us(GLushort red, GLushort green, GLushort blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_SecondaryColor3usv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 2);
- (void) memcpy((void *) (gc->pc + 6), (void *) (&green), 2);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&blue), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3usv 4132
-void
-__indirect_glSecondaryColor3usv(const GLushort * v)
-{
- generic_6_byte(X_GLrop_SecondaryColor3usv, v);
-}
-
-#define X_GLrop_WindowPos3fv 230
-void
-__indirect_glWindowPos3f(GLfloat x, GLfloat y, GLfloat z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_WindowPos3fv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_WindowPos3fv 230
-void
-__indirect_glWindowPos3fv(const GLfloat * v)
-{
- generic_12_byte(X_GLrop_WindowPos3fv, v);
-}
-
-#define X_GLrop_BeginQuery 231
-void
-__indirect_glBeginQuery(GLenum target, GLuint id)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_BeginQuery, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&id), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLsop_DeleteQueries 161
-void
-__indirect_glDeleteQueries(GLsizei n, const GLuint * ids)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 4));
-#endif
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_delete_queries(c, gc->currentContextTag, n, ids);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_DeleteQueries, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) memcpy((void *) (pc + 4), (void *) (ids), safe_mul(n, 4));
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLrop_EndQuery 232
-void
-__indirect_glEndQuery(GLenum target)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_EndQuery, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLsop_GenQueries 162
-void
-__indirect_glGenQueries(GLsizei n, GLuint * ids)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_gen_queries_reply_t *reply =
- xcb_glx_gen_queries_reply(c,
- xcb_glx_gen_queries(c,
- gc->
- currentContextTag,
- n), NULL);
- (void) memcpy(ids, xcb_glx_gen_queries_data(reply),
- xcb_glx_gen_queries_data_length(reply) *
- sizeof(GLuint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GenQueries, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) __glXReadReply(dpy, 4, ids, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetQueryObjectiv 165
-void
-__indirect_glGetQueryObjectiv(GLuint id, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_query_objectiv_reply_t *reply =
- xcb_glx_get_query_objectiv_reply(c,
- xcb_glx_get_query_objectiv(c,
- gc->
- currentContextTag,
- id,
- pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_query_objectiv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_query_objectiv_data(reply),
- xcb_glx_get_query_objectiv_data_length(reply) *
- sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetQueryObjectiv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&id), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetQueryObjectuiv 166
-void
-__indirect_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_query_objectuiv_reply_t *reply =
- xcb_glx_get_query_objectuiv_reply(c,
- xcb_glx_get_query_objectuiv(c,
- gc->
- currentContextTag,
- id,
- pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_query_objectuiv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_query_objectuiv_data(reply),
- xcb_glx_get_query_objectuiv_data_length(reply) *
- sizeof(GLuint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetQueryObjectuiv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&id), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_GetQueryiv 164
-void
-__indirect_glGetQueryiv(GLenum target, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
-#ifndef USE_XCB
- const GLuint cmdlen = 8;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_get_queryiv_reply_t *reply =
- xcb_glx_get_queryiv_reply(c,
- xcb_glx_get_queryiv(c,
- gc->
- currentContextTag,
- target, pname),
- NULL);
- /* the XXX_data_length() xcb function name is misleading, it returns the number */
- /* of elements, not the length of the data part. A single element is embedded. */
- if (xcb_glx_get_queryiv_data_length(reply) == 1)
- (void) memcpy(params, &reply->datum, sizeof(reply->datum));
- else
- (void) memcpy(params, xcb_glx_get_queryiv_data(reply),
- xcb_glx_get_queryiv_data_length(reply) *
- sizeof(GLint));
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_GetQueryiv, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return;
-}
-
-#define X_GLsop_IsQuery 163
-GLboolean
-__indirect_glIsQuery(GLuint id)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLboolean retval = (GLboolean) 0;
-#ifndef USE_XCB
- const GLuint cmdlen = 4;
-#endif
- if (__builtin_expect(dpy != NULL, 1)) {
-#ifdef USE_XCB
- xcb_connection_t *c = XGetXCBConnection(dpy);
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- xcb_glx_is_query_reply_t *reply =
- xcb_glx_is_query_reply(c,
- xcb_glx_is_query(c, gc->currentContextTag,
- id), NULL);
- retval = reply->ret_val;
- free(reply);
-#else
- GLubyte const *pc =
- __glXSetupSingleRequest(gc, X_GLsop_IsQuery, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&id), 4);
- retval = (GLboolean) __glXReadReply(dpy, 0, NULL, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
-#endif /* USE_XCB */
- }
- return retval;
-}
-
-#define X_GLrop_BlendEquationSeparate 4228
-void
-__indirect_glBlendEquationSeparate(GLenum modeRGB, GLenum modeA)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_BlendEquationSeparate, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&modeRGB), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&modeA), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_DrawBuffers 233
-void
-__indirect_glDrawBuffers(GLsizei n, const GLenum * bufs)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (gc->currentDpy != NULL), 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_DrawBuffers, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (bufs),
- safe_mul(n, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_DrawBuffers;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&n), 4);
- __glXSendLargeCommand(gc, pc, 12, bufs, safe_mul(n, 4));
- }
- }
-}
-
-#define X_GLrop_VertexAttrib1dv 4197
-void
-__indirect_glVertexAttrib1d(GLuint index, GLdouble x)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib1dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1dv 4197
-void
-__indirect_glVertexAttrib1dv(GLuint index, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib1dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1sv 4189
-void
-__indirect_glVertexAttrib1s(GLuint index, GLshort x)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib1sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1sv 4189
-void
-__indirect_glVertexAttrib1sv(GLuint index, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib1sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2dv 4198
-void
-__indirect_glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib2dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2dv 4198
-void
-__indirect_glVertexAttrib2dv(GLuint index, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib2dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2sv 4190
-void
-__indirect_glVertexAttrib2s(GLuint index, GLshort x, GLshort y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib2sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&y), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2sv 4190
-void
-__indirect_glVertexAttrib2sv(GLuint index, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib2sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3dv 4199
-void
-__indirect_glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 32;
- emit_header(gc->pc, X_GLrop_VertexAttrib3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&z), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3dv 4199
-void
-__indirect_glVertexAttrib3dv(GLuint index, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 32;
- emit_header(gc->pc, X_GLrop_VertexAttrib3dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 24);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3sv 4191
-void
-__indirect_glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&y), 2);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3sv 4191
-void
-__indirect_glVertexAttrib3sv(GLuint index, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib3sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 6);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4Nbv 4235
-void
-__indirect_glVertexAttrib4Nbv(GLuint index, const GLbyte *v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib4Nbv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4Niv 4237
-void
-__indirect_glVertexAttrib4Niv(GLuint index, const GLint * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib4Niv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4Nsv 4236
-void
-__indirect_glVertexAttrib4Nsv(GLuint index, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib4Nsv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4Nubv 4201
-void
-__indirect_glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z,
- GLubyte w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib4Nubv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 1);
- (void) memcpy((void *) (gc->pc + 9), (void *) (&y), 1);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&z), 1);
- (void) memcpy((void *) (gc->pc + 11), (void *) (&w), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4Nubv 4201
-void
-__indirect_glVertexAttrib4Nubv(GLuint index, const GLubyte *v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib4Nubv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4Nuiv 4239
-void
-__indirect_glVertexAttrib4Nuiv(GLuint index, const GLuint * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib4Nuiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4Nusv 4238
-void
-__indirect_glVertexAttrib4Nusv(GLuint index, const GLushort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib4Nusv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4bv 4230
-void
-__indirect_glVertexAttrib4bv(GLuint index, const GLbyte *v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib4bv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4dv 4200
-void
-__indirect_glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z,
- GLdouble w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 40;
- emit_header(gc->pc, X_GLrop_VertexAttrib4dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&z), 8);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&w), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4dv 4200
-void
-__indirect_glVertexAttrib4dv(GLuint index, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 40;
- emit_header(gc->pc, X_GLrop_VertexAttrib4dv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 32);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4iv 4231
-void
-__indirect_glVertexAttrib4iv(GLuint index, const GLint * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib4iv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4sv 4192
-void
-__indirect_glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z,
- GLshort w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib4sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&y), 2);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 2);
- (void) memcpy((void *) (gc->pc + 14), (void *) (&w), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4sv 4192
-void
-__indirect_glVertexAttrib4sv(GLuint index, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib4sv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4ubv 4232
-void
-__indirect_glVertexAttrib4ubv(GLuint index, const GLubyte *v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib4ubv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4uiv 4234
-void
-__indirect_glVertexAttrib4uiv(GLuint index, const GLuint * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib4uiv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4usv 4233
-void
-__indirect_glVertexAttrib4usv(GLuint index, const GLushort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib4usv, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ClampColor 234
-void
-__indirect_glClampColor(GLenum target, GLenum clamp)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_ClampColor, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&clamp), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_BindProgramARB 4180
-void
-__indirect_glBindProgramARB(GLenum target, GLuint program)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_BindProgramARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&program), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLvop_DeleteProgramsARB 1294
-void
-__indirect_glDeleteProgramsARB(GLsizei n, const GLuint * programs)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivate,
- X_GLvop_DeleteProgramsARB, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) memcpy((void *) (pc + 4), (void *) (programs), safe_mul(n, 4));
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GenProgramsARB 1295
-void
-__indirect_glGenProgramsARB(GLsizei n, GLuint * programs)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 4;
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GenProgramsARB, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) __glXReadReply(dpy, 4, programs, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetProgramStringARB 1308
-void
-__indirect_glGetProgramStringARB(GLenum target, GLenum pname, GLvoid * string)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetProgramStringARB, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 1, string, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetProgramivARB 1307
-void
-__indirect_glGetProgramivARB(GLenum target, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetProgramivARB, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_IsProgramARB 1304
-GLboolean
-__indirect_glIsProgramARB(GLuint program)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLboolean retval = (GLboolean) 0;
- const GLuint cmdlen = 4;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_IsProgramARB, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&program), 4);
- retval = (GLboolean) __glXReadReply(dpy, 0, NULL, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return retval;
-}
-
-#define X_GLrop_ProgramEnvParameter4dvARB 4185
-void
-__indirect_glProgramEnvParameter4dARB(GLenum target, GLuint index, GLdouble x,
- GLdouble y, GLdouble z, GLdouble w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 44;
- emit_header(gc->pc, X_GLrop_ProgramEnvParameter4dvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&z), 8);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&w), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ProgramEnvParameter4dvARB 4185
-void
-__indirect_glProgramEnvParameter4dvARB(GLenum target, GLuint index,
- const GLdouble * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 44;
- emit_header(gc->pc, X_GLrop_ProgramEnvParameter4dvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params), 32);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ProgramEnvParameter4fvARB 4184
-void
-__indirect_glProgramEnvParameter4fARB(GLenum target, GLuint index, GLfloat x,
- GLfloat y, GLfloat z, GLfloat w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_ProgramEnvParameter4fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&w), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ProgramEnvParameter4fvARB 4184
-void
-__indirect_glProgramEnvParameter4fvARB(GLenum target, GLuint index,
- const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_ProgramEnvParameter4fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ProgramLocalParameter4dvARB 4216
-void
-__indirect_glProgramLocalParameter4dARB(GLenum target, GLuint index,
- GLdouble x, GLdouble y, GLdouble z,
- GLdouble w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 44;
- emit_header(gc->pc, X_GLrop_ProgramLocalParameter4dvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&z), 8);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&w), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ProgramLocalParameter4dvARB 4216
-void
-__indirect_glProgramLocalParameter4dvARB(GLenum target, GLuint index,
- const GLdouble * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 44;
- emit_header(gc->pc, X_GLrop_ProgramLocalParameter4dvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params), 32);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ProgramLocalParameter4fvARB 4215
-void
-__indirect_glProgramLocalParameter4fARB(GLenum target, GLuint index,
- GLfloat x, GLfloat y, GLfloat z,
- GLfloat w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_ProgramLocalParameter4fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&w), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ProgramLocalParameter4fvARB 4215
-void
-__indirect_glProgramLocalParameter4fvARB(GLenum target, GLuint index,
- const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_ProgramLocalParameter4fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_ProgramStringARB 4217
-void
-__indirect_glProgramStringARB(GLenum target, GLenum format, GLsizei len,
- const GLvoid * string)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16 + safe_pad(len);
- if (0 + safe_pad(len) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (len < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((len >= 0) && (gc->currentDpy != NULL), 1)) {
- if (cmdlen <= gc->maxSmallRenderCommandSize) {
- if ((gc->pc + cmdlen) > gc->bufEnd) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- emit_header(gc->pc, X_GLrop_ProgramStringARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&format), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&len), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (string), len);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- } else {
- const GLint op = X_GLrop_ProgramStringARB;
- const GLuint cmdlenLarge = cmdlen + 4;
- GLubyte *const pc = __glXFlushRenderBuffer(gc, gc->pc);
- (void) memcpy((void *) (pc + 0), (void *) (&cmdlenLarge), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&op), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 12), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 16), (void *) (&len), 4);
- __glXSendLargeCommand(gc, pc, 20, string, len);
- }
- }
-}
-
-#define X_GLrop_VertexAttrib1fvARB 4193
-void
-__indirect_glVertexAttrib1fARB(GLuint index, GLfloat x)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib1fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1fvARB 4193
-void
-__indirect_glVertexAttrib1fvARB(GLuint index, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib1fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2fvARB 4194
-void
-__indirect_glVertexAttrib2fARB(GLuint index, GLfloat x, GLfloat y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib2fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2fvARB 4194
-void
-__indirect_glVertexAttrib2fvARB(GLuint index, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib2fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3fvARB 4195
-void
-__indirect_glVertexAttrib3fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_VertexAttrib3fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3fvARB 4195
-void
-__indirect_glVertexAttrib3fvARB(GLuint index, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_VertexAttrib3fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 12);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4fvARB 4196
-void
-__indirect_glVertexAttrib4fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z,
- GLfloat w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib4fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&z), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&w), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4fvARB 4196
-void
-__indirect_glVertexAttrib4fvARB(GLuint index, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib4fvARB, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_BindFramebuffer 236
-void
-__indirect_glBindFramebuffer(GLenum target, GLuint framebuffer)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_BindFramebuffer, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&framebuffer), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_BindRenderbuffer 235
-void
-__indirect_glBindRenderbuffer(GLenum target, GLuint renderbuffer)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_BindRenderbuffer, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&renderbuffer), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_BlitFramebuffer 4330
-void
-__indirect_glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1,
- GLint srcY1, GLint dstX0, GLint dstY0,
- GLint dstX1, GLint dstY1, GLbitfield mask,
- GLenum filter)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 44;
- emit_header(gc->pc, X_GLrop_BlitFramebuffer, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&srcX0), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&srcY0), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&srcX1), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&srcY1), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&dstX0), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&dstY0), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&dstX1), 4);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&dstY1), 4);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&mask), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&filter), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLvop_CheckFramebufferStatus 1427
-GLenum
-__indirect_glCheckFramebufferStatus(GLenum target)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLenum retval = (GLenum) 0;
- const GLuint cmdlen = 4;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_CheckFramebufferStatus, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- retval = (GLenum) __glXReadReply(dpy, 0, NULL, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return retval;
-}
-
-#define X_GLrop_DeleteFramebuffers 4320
-void
-__indirect_glDeleteFramebuffers(GLsizei n, const GLuint * framebuffers)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_DeleteFramebuffers, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (framebuffers),
- safe_mul(n, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_DeleteRenderbuffers 4317
-void
-__indirect_glDeleteRenderbuffers(GLsizei n, const GLuint * renderbuffers)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_DeleteRenderbuffers, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (renderbuffers),
- safe_mul(n, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_FramebufferRenderbuffer 4324
-void
-__indirect_glFramebufferRenderbuffer(GLenum target, GLenum attachment,
- GLenum renderbuffertarget,
- GLuint renderbuffer)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_FramebufferRenderbuffer, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&attachment), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&renderbuffertarget), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&renderbuffer), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_FramebufferTexture1D 4321
-void
-__indirect_glFramebufferTexture1D(GLenum target, GLenum attachment,
- GLenum textarget, GLuint texture,
- GLint level)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_FramebufferTexture1D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&attachment), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&textarget), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&texture), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&level), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_FramebufferTexture2D 4322
-void
-__indirect_glFramebufferTexture2D(GLenum target, GLenum attachment,
- GLenum textarget, GLuint texture,
- GLint level)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_FramebufferTexture2D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&attachment), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&textarget), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&texture), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&level), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_FramebufferTexture3D 4323
-void
-__indirect_glFramebufferTexture3D(GLenum target, GLenum attachment,
- GLenum textarget, GLuint texture,
- GLint level, GLint layer)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_FramebufferTexture3D, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&attachment), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&textarget), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&texture), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&layer), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_FramebufferTextureLayer 237
-void
-__indirect_glFramebufferTextureLayer(GLenum target, GLenum attachment,
- GLuint texture, GLint level, GLint layer)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_FramebufferTextureLayer, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&attachment), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&texture), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&level), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&layer), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLvop_GenFramebuffers 1426
-void
-__indirect_glGenFramebuffers(GLsizei n, GLuint * framebuffers)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 4;
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GenFramebuffers, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) __glXReadReply(dpy, 4, framebuffers, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GenRenderbuffers 1423
-void
-__indirect_glGenRenderbuffers(GLsizei n, GLuint * renderbuffers)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 4;
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GenRenderbuffers, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) __glXReadReply(dpy, 4, renderbuffers, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLrop_GenerateMipmap 4325
-void
-__indirect_glGenerateMipmap(GLenum target)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_GenerateMipmap, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLvop_GetFramebufferAttachmentParameteriv 1428
-void
-__indirect_glGetFramebufferAttachmentParameteriv(GLenum target,
- GLenum attachment,
- GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 12;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetFramebufferAttachmentParameteriv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&attachment), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetRenderbufferParameteriv 1424
-void
-__indirect_glGetRenderbufferParameteriv(GLenum target, GLenum pname,
- GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetRenderbufferParameteriv,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_IsFramebuffer 1425
-GLboolean
-__indirect_glIsFramebuffer(GLuint framebuffer)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLboolean retval = (GLboolean) 0;
- const GLuint cmdlen = 4;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_IsFramebuffer, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&framebuffer), 4);
- retval = (GLboolean) __glXReadReply(dpy, 0, NULL, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return retval;
-}
-
-#define X_GLvop_IsRenderbuffer 1422
-GLboolean
-__indirect_glIsRenderbuffer(GLuint renderbuffer)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLboolean retval = (GLboolean) 0;
- const GLuint cmdlen = 4;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_IsRenderbuffer, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&renderbuffer), 4);
- retval = (GLboolean) __glXReadReply(dpy, 0, NULL, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return retval;
-}
-
-#define X_GLrop_RenderbufferStorage 4318
-void
-__indirect_glRenderbufferStorage(GLenum target, GLenum internalformat,
- GLsizei width, GLsizei height)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_RenderbufferStorage, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&internalformat), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&height), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_RenderbufferStorageMultisample 4331
-void
-__indirect_glRenderbufferStorageMultisample(GLenum target, GLsizei samples,
- GLenum internalformat,
- GLsizei width, GLsizei height)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_RenderbufferStorageMultisample, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&samples), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&internalformat), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&width), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&height), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SampleMaskSGIS 2048
-void
-__indirect_glSampleMaskSGIS(GLclampf value, GLboolean invert)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_SampleMaskSGIS, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&value), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&invert), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SamplePatternSGIS 2049
-void
-__indirect_glSamplePatternSGIS(GLenum pattern)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_SamplePatternSGIS, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&pattern), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3fvEXT 4129
-void
-__indirect_glSecondaryColor3fEXT(GLfloat red, GLfloat green, GLfloat blue)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_SecondaryColor3fvEXT, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&red), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&green), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&blue), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_SecondaryColor3fvEXT 4129
-void
-__indirect_glSecondaryColor3fvEXT(const GLfloat * v)
-{
- generic_12_byte(X_GLrop_SecondaryColor3fvEXT, v);
-}
-
-#define X_GLrop_FogCoordfvEXT 4124
-void
-__indirect_glFogCoordfEXT(GLfloat coord)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_FogCoordfvEXT, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&coord), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_FogCoordfvEXT 4124
-void
-__indirect_glFogCoordfvEXT(const GLfloat * coord)
-{
- generic_4_byte(X_GLrop_FogCoordfvEXT, coord);
-}
-
-#define X_GLvop_AreProgramsResidentNV 1293
-GLboolean
-__indirect_glAreProgramsResidentNV(GLsizei n, const GLuint * ids,
- GLboolean * residences)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- GLboolean retval = (GLboolean) 0;
- const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return 0;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return 0;
- }
- if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_AreProgramsResidentNV, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&n), 4);
- (void) memcpy((void *) (pc + 4), (void *) (ids), safe_mul(n, 4));
- retval = (GLboolean) __glXReadReply(dpy, 1, residences, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return retval;
-}
-
-#define X_GLrop_ExecuteProgramNV 4181
-void
-__indirect_glExecuteProgramNV(GLenum target, GLuint id,
- const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28;
- emit_header(gc->pc, X_GLrop_ExecuteProgramNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&id), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (params), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLvop_GetProgramParameterdvNV 1297
-void
-__indirect_glGetProgramParameterdvNV(GLenum target, GLuint index,
- GLenum pname, GLdouble * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 12;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetProgramParameterdvNV, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 8, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetProgramParameterfvNV 1296
-void
-__indirect_glGetProgramParameterfvNV(GLenum target, GLuint index,
- GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 12;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetProgramParameterfvNV, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetProgramStringNV 1299
-void
-__indirect_glGetProgramStringNV(GLuint id, GLenum pname, GLubyte *program)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetProgramStringNV, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&id), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 1, program, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetProgramivNV 1298
-void
-__indirect_glGetProgramivNV(GLuint id, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetProgramivNV, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&id), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetTrackMatrixivNV 1300
-void
-__indirect_glGetTrackMatrixivNV(GLenum target, GLuint address, GLenum pname,
- GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 12;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetTrackMatrixivNV, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&address), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetVertexAttribdvNV 1301
-void
-__indirect_glGetVertexAttribdvNV(GLuint index, GLenum pname,
- GLdouble * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetVertexAttribdvNV, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&index), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 8, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetVertexAttribfvNV 1302
-void
-__indirect_glGetVertexAttribfvNV(GLuint index, GLenum pname, GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetVertexAttribfvNV, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&index), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetVertexAttribivNV 1303
-void
-__indirect_glGetVertexAttribivNV(GLuint index, GLenum pname, GLint * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8;
- if (__builtin_expect(dpy != NULL, 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetVertexAttribivNV, cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&index), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&pname), 4);
- (void) __glXReadReply(dpy, 4, params, GL_FALSE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLrop_LoadProgramNV 4183
-void
-__indirect_glLoadProgramNV(GLenum target, GLuint id, GLsizei len,
- const GLubyte *program)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16 + safe_pad(len);
- if (0 + safe_pad(len) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (len < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(len >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_LoadProgramNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&id), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&len), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (program), len);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_ProgramParameters4dvNV 4187
-void
-__indirect_glProgramParameters4dvNV(GLenum target, GLuint index, GLsizei num,
- const GLdouble * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16 + safe_pad(safe_mul(num, 32));
- if (0 + safe_pad(safe_mul(num, 32)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (num < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(num >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_ProgramParameters4dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&num), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (params),
- safe_mul(num, 32));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_ProgramParameters4fvNV 4186
-void
-__indirect_glProgramParameters4fvNV(GLenum target, GLuint index, GLsizei num,
- const GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16 + safe_pad(safe_mul(num, 16));
- if (0 + safe_pad(safe_mul(num, 16)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (num < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(num >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_ProgramParameters4fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&num), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (params),
- safe_mul(num, 16));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_RequestResidentProgramsNV 4182
-void
-__indirect_glRequestResidentProgramsNV(GLsizei n, const GLuint * ids)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_RequestResidentProgramsNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (ids), safe_mul(n, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_TrackMatrixNV 4188
-void
-__indirect_glTrackMatrixNV(GLenum target, GLuint address, GLenum matrix,
- GLenum transform)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_TrackMatrixNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&address), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&matrix), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&transform), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1dvNV 4273
-void
-__indirect_glVertexAttrib1dNV(GLuint index, GLdouble x)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib1dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1dvNV 4273
-void
-__indirect_glVertexAttrib1dvNV(GLuint index, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib1dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1fvNV 4269
-void
-__indirect_glVertexAttrib1fNV(GLuint index, GLfloat x)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib1fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1fvNV 4269
-void
-__indirect_glVertexAttrib1fvNV(GLuint index, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib1fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1svNV 4265
-void
-__indirect_glVertexAttrib1sNV(GLuint index, GLshort x)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib1svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib1svNV 4265
-void
-__indirect_glVertexAttrib1svNV(GLuint index, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib1svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2dvNV 4274
-void
-__indirect_glVertexAttrib2dNV(GLuint index, GLdouble x, GLdouble y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib2dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2dvNV 4274
-void
-__indirect_glVertexAttrib2dvNV(GLuint index, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib2dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2fvNV 4270
-void
-__indirect_glVertexAttrib2fNV(GLuint index, GLfloat x, GLfloat y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib2fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2fvNV 4270
-void
-__indirect_glVertexAttrib2fvNV(GLuint index, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib2fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2svNV 4266
-void
-__indirect_glVertexAttrib2sNV(GLuint index, GLshort x, GLshort y)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib2svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&y), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib2svNV 4266
-void
-__indirect_glVertexAttrib2svNV(GLuint index, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib2svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3dvNV 4275
-void
-__indirect_glVertexAttrib3dNV(GLuint index, GLdouble x, GLdouble y,
- GLdouble z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 32;
- emit_header(gc->pc, X_GLrop_VertexAttrib3dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&z), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3dvNV 4275
-void
-__indirect_glVertexAttrib3dvNV(GLuint index, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 32;
- emit_header(gc->pc, X_GLrop_VertexAttrib3dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 24);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3fvNV 4271
-void
-__indirect_glVertexAttrib3fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_VertexAttrib3fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&z), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3fvNV 4271
-void
-__indirect_glVertexAttrib3fvNV(GLuint index, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 20;
- emit_header(gc->pc, X_GLrop_VertexAttrib3fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 12);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3svNV 4267
-void
-__indirect_glVertexAttrib3sNV(GLuint index, GLshort x, GLshort y, GLshort z)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib3svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&y), 2);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib3svNV 4267
-void
-__indirect_glVertexAttrib3svNV(GLuint index, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib3svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 6);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4dvNV 4276
-void
-__indirect_glVertexAttrib4dNV(GLuint index, GLdouble x, GLdouble y,
- GLdouble z, GLdouble w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 40;
- emit_header(gc->pc, X_GLrop_VertexAttrib4dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&z), 8);
- (void) memcpy((void *) (gc->pc + 32), (void *) (&w), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4dvNV 4276
-void
-__indirect_glVertexAttrib4dvNV(GLuint index, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 40;
- emit_header(gc->pc, X_GLrop_VertexAttrib4dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 32);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4fvNV 4272
-void
-__indirect_glVertexAttrib4fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z,
- GLfloat w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib4fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&z), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&w), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4fvNV 4272
-void
-__indirect_glVertexAttrib4fvNV(GLuint index, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 24;
- emit_header(gc->pc, X_GLrop_VertexAttrib4fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 16);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4svNV 4268
-void
-__indirect_glVertexAttrib4sNV(GLuint index, GLshort x, GLshort y, GLshort z,
- GLshort w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib4svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 2);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&y), 2);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&z), 2);
- (void) memcpy((void *) (gc->pc + 14), (void *) (&w), 2);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4svNV 4268
-void
-__indirect_glVertexAttrib4svNV(GLuint index, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 16;
- emit_header(gc->pc, X_GLrop_VertexAttrib4svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 8);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4ubvNV 4277
-void
-__indirect_glVertexAttrib4ubNV(GLuint index, GLubyte x, GLubyte y, GLubyte z,
- GLubyte w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib4ubvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&x), 1);
- (void) memcpy((void *) (gc->pc + 9), (void *) (&y), 1);
- (void) memcpy((void *) (gc->pc + 10), (void *) (&z), 1);
- (void) memcpy((void *) (gc->pc + 11), (void *) (&w), 1);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttrib4ubvNV 4277
-void
-__indirect_glVertexAttrib4ubvNV(GLuint index, const GLubyte *v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_VertexAttrib4ubvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (v), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_VertexAttribs1dvNV 4210
-void
-__indirect_glVertexAttribs1dvNV(GLuint index, GLsizei n, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 8));
- if (0 + safe_pad(safe_mul(n, 8)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs1dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 8));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs1fvNV 4206
-void
-__indirect_glVertexAttribs1fvNV(GLuint index, GLsizei n, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs1fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs1svNV 4202
-void
-__indirect_glVertexAttribs1svNV(GLuint index, GLsizei n, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 2));
- if (0 + safe_pad(safe_mul(n, 2)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs1svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 2));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs2dvNV 4211
-void
-__indirect_glVertexAttribs2dvNV(GLuint index, GLsizei n, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 16));
- if (0 + safe_pad(safe_mul(n, 16)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs2dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 16));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs2fvNV 4207
-void
-__indirect_glVertexAttribs2fvNV(GLuint index, GLsizei n, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 8));
- if (0 + safe_pad(safe_mul(n, 8)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs2fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 8));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs2svNV 4203
-void
-__indirect_glVertexAttribs2svNV(GLuint index, GLsizei n, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs2svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs3dvNV 4212
-void
-__indirect_glVertexAttribs3dvNV(GLuint index, GLsizei n, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 24));
- if (0 + safe_pad(safe_mul(n, 24)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs3dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 24));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs3fvNV 4208
-void
-__indirect_glVertexAttribs3fvNV(GLuint index, GLsizei n, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 12));
- if (0 + safe_pad(safe_mul(n, 12)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs3fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 12));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs3svNV 4204
-void
-__indirect_glVertexAttribs3svNV(GLuint index, GLsizei n, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 6));
- if (0 + safe_pad(safe_mul(n, 6)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs3svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 6));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs4dvNV 4213
-void
-__indirect_glVertexAttribs4dvNV(GLuint index, GLsizei n, const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 32));
- if (0 + safe_pad(safe_mul(n, 32)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs4dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 32));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs4fvNV 4209
-void
-__indirect_glVertexAttribs4fvNV(GLuint index, GLsizei n, const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 16));
- if (0 + safe_pad(safe_mul(n, 16)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs4fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 16));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs4svNV 4205
-void
-__indirect_glVertexAttribs4svNV(GLuint index, GLsizei n, const GLshort * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 8));
- if (0 + safe_pad(safe_mul(n, 8)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs4svNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 8));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_VertexAttribs4ubvNV 4214
-void
-__indirect_glVertexAttribs4ubvNV(GLuint index, GLsizei n, const GLubyte *v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 4));
- if (0 + safe_pad(safe_mul(n, 4)) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (n < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(n >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_VertexAttribs4ubvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&index), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&n), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), safe_mul(n, 4));
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_ActiveStencilFaceEXT 4220
-void
-__indirect_glActiveStencilFaceEXT(GLenum face)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 8;
- emit_header(gc->pc, X_GLrop_ActiveStencilFaceEXT, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&face), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLvop_GetProgramNamedParameterdvNV 1311
-void
-__indirect_glGetProgramNamedParameterdvNV(GLuint id, GLsizei len,
- const GLubyte *name,
- GLdouble * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8 + safe_pad(len);
- if (0 + safe_pad(len) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (len < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((len >= 0) && (dpy != NULL), 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetProgramNamedParameterdvNV,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&id), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&len), 4);
- (void) memcpy((void *) (pc + 8), (void *) (name), len);
- (void) __glXReadReply(dpy, 8, params, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLvop_GetProgramNamedParameterfvNV 1310
-void
-__indirect_glGetProgramNamedParameterfvNV(GLuint id, GLsizei len,
- const GLubyte *name,
- GLfloat * params)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = 8 + safe_pad(len);
- if (0 + safe_pad(len) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (len < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect((len >= 0) && (dpy != NULL), 1)) {
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetProgramNamedParameterfvNV,
- cmdlen);
- (void) memcpy((void *) (pc + 0), (void *) (&id), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&len), 4);
- (void) memcpy((void *) (pc + 8), (void *) (name), len);
- (void) __glXReadReply(dpy, 4, params, GL_TRUE);
- UnlockDisplay(dpy);
- SyncHandle();
- }
- return;
-}
-
-#define X_GLrop_ProgramNamedParameter4dvNV 4219
-void
-__indirect_glProgramNamedParameter4dNV(GLuint id, GLsizei len,
- const GLubyte *name, GLdouble x,
- GLdouble y, GLdouble z, GLdouble w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 44 + safe_pad(len);
- if (0 + safe_pad(len) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (len < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(len >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_ProgramNamedParameter4dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&x), 8);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&y), 8);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 8);
- (void) memcpy((void *) (gc->pc + 28), (void *) (&w), 8);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&id), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&len), 4);
- (void) memcpy((void *) (gc->pc + 44), (void *) (name), len);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_ProgramNamedParameter4dvNV 4219
-void
-__indirect_glProgramNamedParameter4dvNV(GLuint id, GLsizei len,
- const GLubyte *name,
- const GLdouble * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 44 + safe_pad(len);
- if (0 + safe_pad(len) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (len < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(len >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_ProgramNamedParameter4dvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (v), 32);
- (void) memcpy((void *) (gc->pc + 36), (void *) (&id), 4);
- (void) memcpy((void *) (gc->pc + 40), (void *) (&len), 4);
- (void) memcpy((void *) (gc->pc + 44), (void *) (name), len);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_ProgramNamedParameter4fvNV 4218
-void
-__indirect_glProgramNamedParameter4fNV(GLuint id, GLsizei len,
- const GLubyte *name, GLfloat x,
- GLfloat y, GLfloat z, GLfloat w)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28 + safe_pad(len);
- if (0 + safe_pad(len) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (len < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(len >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_ProgramNamedParameter4fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&id), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&len), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (&x), 4);
- (void) memcpy((void *) (gc->pc + 16), (void *) (&y), 4);
- (void) memcpy((void *) (gc->pc + 20), (void *) (&z), 4);
- (void) memcpy((void *) (gc->pc + 24), (void *) (&w), 4);
- (void) memcpy((void *) (gc->pc + 28), (void *) (name), len);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_ProgramNamedParameter4fvNV 4218
-void
-__indirect_glProgramNamedParameter4fvNV(GLuint id, GLsizei len,
- const GLubyte *name,
- const GLfloat * v)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 28 + safe_pad(len);
- if (0 + safe_pad(len) < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (len < 0) {
- __glXSetError(gc, GL_INVALID_VALUE);
- return;
- }
- if (__builtin_expect(len >= 0, 1)) {
- emit_header(gc->pc, X_GLrop_ProgramNamedParameter4fvNV, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&id), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&len), 4);
- (void) memcpy((void *) (gc->pc + 12), (void *) (v), 16);
- (void) memcpy((void *) (gc->pc + 28), (void *) (name), len);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
- }
-}
-
-#define X_GLrop_BindFramebufferEXT 4319
-void
-__indirect_glBindFramebufferEXT(GLenum target, GLuint framebuffer)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_BindFramebufferEXT, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&framebuffer), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-#define X_GLrop_BindRenderbufferEXT 4316
-void
-__indirect_glBindRenderbufferEXT(GLenum target, GLuint renderbuffer)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
- const GLuint cmdlen = 12;
- emit_header(gc->pc, X_GLrop_BindRenderbufferEXT, cmdlen);
- (void) memcpy((void *) (gc->pc + 4), (void *) (&target), 4);
- (void) memcpy((void *) (gc->pc + 8), (void *) (&renderbuffer), 4);
- gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) {
- (void) __glXFlushRenderBuffer(gc, gc->pc);
- }
-}
-
-
-#ifdef GLX_INDIRECT_RENDERING
-
-static const struct proc_pair {
- const char *name;
- _glapi_proc proc;
-} proc_pairs[20] = {
- {"AreTexturesResidentEXT", (_glapi_proc) glAreTexturesResidentEXT},
- {"DeleteTexturesEXT", (_glapi_proc) glDeleteTexturesEXT},
- {"GenTexturesEXT", (_glapi_proc) glGenTexturesEXT},
- {"GetColorTableEXT", (_glapi_proc) gl_dispatch_stub_343},
- {"GetColorTableParameterfvEXT", (_glapi_proc) gl_dispatch_stub_344},
- {"GetColorTableParameterfvSGI", (_glapi_proc) gl_dispatch_stub_344},
- {"GetColorTableParameterivEXT", (_glapi_proc) gl_dispatch_stub_345},
- {"GetColorTableParameterivSGI", (_glapi_proc) gl_dispatch_stub_345},
- {"GetColorTableSGI", (_glapi_proc) gl_dispatch_stub_343},
- {"GetConvolutionFilterEXT", (_glapi_proc) gl_dispatch_stub_356},
- {"GetConvolutionParameterfvEXT", (_glapi_proc) gl_dispatch_stub_357},
- {"GetConvolutionParameterivEXT", (_glapi_proc) gl_dispatch_stub_358},
- {"GetHistogramEXT", (_glapi_proc) gl_dispatch_stub_361},
- {"GetHistogramParameterfvEXT", (_glapi_proc) gl_dispatch_stub_362},
- {"GetHistogramParameterivEXT", (_glapi_proc) gl_dispatch_stub_363},
- {"GetMinmaxEXT", (_glapi_proc) gl_dispatch_stub_364},
- {"GetMinmaxParameterfvEXT", (_glapi_proc) gl_dispatch_stub_365},
- {"GetMinmaxParameterivEXT", (_glapi_proc) gl_dispatch_stub_366},
- {"GetSeparableFilterEXT", (_glapi_proc) gl_dispatch_stub_359},
- {"IsTextureEXT", (_glapi_proc) glIsTextureEXT}
-};
-
-static int
-__indirect_get_proc_compare(const void *key, const void *memb)
-{
- const struct proc_pair *pair = (const struct proc_pair *) memb;
- return strcmp((const char *) key, pair->name);
-}
-
-_glapi_proc
-__indirect_get_proc_address(const char *name)
-{
- const struct proc_pair *pair;
-
- /* skip "gl" */
- name += 2;
-
- pair = (const struct proc_pair *) bsearch((const void *) name,
- (const void *) proc_pairs,
- ARRAY_SIZE(proc_pairs),
- sizeof(proc_pairs[0]),
- __indirect_get_proc_compare);
-
- return (pair) ? pair->proc : NULL;
-}
-
-#endif /* GLX_INDIRECT_RENDERING */
-
-
-#undef FASTCALL
-#undef NOINLINE
diff --git a/lib/mesa/src/glx/indirect.h b/lib/mesa/src/glx/indirect.h
deleted file mode 100644
index ef2cc5c59..000000000
--- a/lib/mesa/src/glx/indirect.h
+++ /dev/null
@@ -1,724 +0,0 @@
-/* DO NOT EDIT - This file generated automatically by glX_proto_send.py (from Mesa) script */
-
-/*
- * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
- * (C) Copyright IBM Corporation 2004
- * All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sub license,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * PRECISION INSIGHT, IBM,
- * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
- * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-#if !defined( _INDIRECT_H_ )
-# define _INDIRECT_H_
-
-/**
- * \file
- * Prototypes for indirect rendering functions.
- *
- * \author Kevin E. Martin <kevin@precisioninsight.com>
- * \author Ian Romanick <idr@us.ibm.com>
- */
-
-# if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)
-# define FASTCALL __attribute__((fastcall))
-# else
-# define FASTCALL
-# endif
-# if defined(__GNUC__)
-# define NOINLINE __attribute__((noinline))
-# else
-# define NOINLINE
-# endif
-
-#include <X11/Xfuncproto.h>
-#include "glxclient.h"
-
-extern _X_HIDDEN NOINLINE CARD32 __glXReadReply( Display *dpy, size_t size,
- void * dest, GLboolean reply_is_always_array );
-
-extern _X_HIDDEN NOINLINE void __glXReadPixelReply( Display *dpy,
- struct glx_context * gc, unsigned max_dim, GLint width, GLint height,
- GLint depth, GLenum format, GLenum type, void * dest,
- GLboolean dimensions_in_reply );
-
-extern _X_HIDDEN NOINLINE FASTCALL GLubyte * __glXSetupSingleRequest(
- struct glx_context * gc, GLint sop, GLint cmdlen );
-
-extern _X_HIDDEN NOINLINE FASTCALL GLubyte * __glXSetupVendorRequest(
- struct glx_context * gc, GLint code, GLint vop, GLint cmdlen );
-
-extern _X_HIDDEN void __indirect_glNewList(GLuint list, GLenum mode);
-extern _X_HIDDEN void __indirect_glEndList(void);
-extern _X_HIDDEN void __indirect_glCallList(GLuint list);
-extern _X_HIDDEN void __indirect_glCallLists(GLsizei n, GLenum type, const GLvoid * lists);
-extern _X_HIDDEN void __indirect_glDeleteLists(GLuint list, GLsizei range);
-extern _X_HIDDEN GLuint __indirect_glGenLists(GLsizei range);
-extern _X_HIDDEN void __indirect_glListBase(GLuint base);
-extern _X_HIDDEN void __indirect_glBegin(GLenum mode);
-extern _X_HIDDEN void __indirect_glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap);
-extern _X_HIDDEN void __indirect_glColor3b(GLbyte red, GLbyte green, GLbyte blue);
-extern _X_HIDDEN void __indirect_glColor3bv(const GLbyte * v);
-extern _X_HIDDEN void __indirect_glColor3d(GLdouble red, GLdouble green, GLdouble blue);
-extern _X_HIDDEN void __indirect_glColor3dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glColor3f(GLfloat red, GLfloat green, GLfloat blue);
-extern _X_HIDDEN void __indirect_glColor3fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glColor3i(GLint red, GLint green, GLint blue);
-extern _X_HIDDEN void __indirect_glColor3iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glColor3s(GLshort red, GLshort green, GLshort blue);
-extern _X_HIDDEN void __indirect_glColor3sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glColor3ub(GLubyte red, GLubyte green, GLubyte blue);
-extern _X_HIDDEN void __indirect_glColor3ubv(const GLubyte * v);
-extern _X_HIDDEN void __indirect_glColor3ui(GLuint red, GLuint green, GLuint blue);
-extern _X_HIDDEN void __indirect_glColor3uiv(const GLuint * v);
-extern _X_HIDDEN void __indirect_glColor3us(GLushort red, GLushort green, GLushort blue);
-extern _X_HIDDEN void __indirect_glColor3usv(const GLushort * v);
-extern _X_HIDDEN void __indirect_glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
-extern _X_HIDDEN void __indirect_glColor4bv(const GLbyte * v);
-extern _X_HIDDEN void __indirect_glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
-extern _X_HIDDEN void __indirect_glColor4dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-extern _X_HIDDEN void __indirect_glColor4fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glColor4i(GLint red, GLint green, GLint blue, GLint alpha);
-extern _X_HIDDEN void __indirect_glColor4iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha);
-extern _X_HIDDEN void __indirect_glColor4sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
-extern _X_HIDDEN void __indirect_glColor4ubv(const GLubyte * v);
-extern _X_HIDDEN void __indirect_glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha);
-extern _X_HIDDEN void __indirect_glColor4uiv(const GLuint * v);
-extern _X_HIDDEN void __indirect_glColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha);
-extern _X_HIDDEN void __indirect_glColor4usv(const GLushort * v);
-extern _X_HIDDEN void __indirect_glEdgeFlag(GLboolean flag);
-extern _X_HIDDEN void __indirect_glEdgeFlagv(const GLboolean * flag);
-extern _X_HIDDEN void __indirect_glEnd(void);
-extern _X_HIDDEN void __indirect_glIndexd(GLdouble c);
-extern _X_HIDDEN void __indirect_glIndexdv(const GLdouble * c);
-extern _X_HIDDEN void __indirect_glIndexf(GLfloat c);
-extern _X_HIDDEN void __indirect_glIndexfv(const GLfloat * c);
-extern _X_HIDDEN void __indirect_glIndexi(GLint c);
-extern _X_HIDDEN void __indirect_glIndexiv(const GLint * c);
-extern _X_HIDDEN void __indirect_glIndexs(GLshort c);
-extern _X_HIDDEN void __indirect_glIndexsv(const GLshort * c);
-extern _X_HIDDEN void __indirect_glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz);
-extern _X_HIDDEN void __indirect_glNormal3bv(const GLbyte * v);
-extern _X_HIDDEN void __indirect_glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz);
-extern _X_HIDDEN void __indirect_glNormal3dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
-extern _X_HIDDEN void __indirect_glNormal3fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glNormal3i(GLint nx, GLint ny, GLint nz);
-extern _X_HIDDEN void __indirect_glNormal3iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glNormal3s(GLshort nx, GLshort ny, GLshort nz);
-extern _X_HIDDEN void __indirect_glNormal3sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glRasterPos2d(GLdouble x, GLdouble y);
-extern _X_HIDDEN void __indirect_glRasterPos2dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glRasterPos2f(GLfloat x, GLfloat y);
-extern _X_HIDDEN void __indirect_glRasterPos2fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glRasterPos2i(GLint x, GLint y);
-extern _X_HIDDEN void __indirect_glRasterPos2iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glRasterPos2s(GLshort x, GLshort y);
-extern _X_HIDDEN void __indirect_glRasterPos2sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glRasterPos3d(GLdouble x, GLdouble y, GLdouble z);
-extern _X_HIDDEN void __indirect_glRasterPos3dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glRasterPos3f(GLfloat x, GLfloat y, GLfloat z);
-extern _X_HIDDEN void __indirect_glRasterPos3fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glRasterPos3i(GLint x, GLint y, GLint z);
-extern _X_HIDDEN void __indirect_glRasterPos3iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glRasterPos3s(GLshort x, GLshort y, GLshort z);
-extern _X_HIDDEN void __indirect_glRasterPos3sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-extern _X_HIDDEN void __indirect_glRasterPos4dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-extern _X_HIDDEN void __indirect_glRasterPos4fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glRasterPos4i(GLint x, GLint y, GLint z, GLint w);
-extern _X_HIDDEN void __indirect_glRasterPos4iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w);
-extern _X_HIDDEN void __indirect_glRasterPos4sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
-extern _X_HIDDEN void __indirect_glRectdv(const GLdouble * v1, const GLdouble * v2);
-extern _X_HIDDEN void __indirect_glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
-extern _X_HIDDEN void __indirect_glRectfv(const GLfloat * v1, const GLfloat * v2);
-extern _X_HIDDEN void __indirect_glRecti(GLint x1, GLint y1, GLint x2, GLint y2);
-extern _X_HIDDEN void __indirect_glRectiv(const GLint * v1, const GLint * v2);
-extern _X_HIDDEN void __indirect_glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
-extern _X_HIDDEN void __indirect_glRectsv(const GLshort * v1, const GLshort * v2);
-extern _X_HIDDEN void __indirect_glTexCoord1d(GLdouble s);
-extern _X_HIDDEN void __indirect_glTexCoord1dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glTexCoord1f(GLfloat s);
-extern _X_HIDDEN void __indirect_glTexCoord1fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glTexCoord1i(GLint s);
-extern _X_HIDDEN void __indirect_glTexCoord1iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glTexCoord1s(GLshort s);
-extern _X_HIDDEN void __indirect_glTexCoord1sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glTexCoord2d(GLdouble s, GLdouble t);
-extern _X_HIDDEN void __indirect_glTexCoord2dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glTexCoord2f(GLfloat s, GLfloat t);
-extern _X_HIDDEN void __indirect_glTexCoord2fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glTexCoord2i(GLint s, GLint t);
-extern _X_HIDDEN void __indirect_glTexCoord2iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glTexCoord2s(GLshort s, GLshort t);
-extern _X_HIDDEN void __indirect_glTexCoord2sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glTexCoord3d(GLdouble s, GLdouble t, GLdouble r);
-extern _X_HIDDEN void __indirect_glTexCoord3dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glTexCoord3f(GLfloat s, GLfloat t, GLfloat r);
-extern _X_HIDDEN void __indirect_glTexCoord3fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glTexCoord3i(GLint s, GLint t, GLint r);
-extern _X_HIDDEN void __indirect_glTexCoord3iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glTexCoord3s(GLshort s, GLshort t, GLshort r);
-extern _X_HIDDEN void __indirect_glTexCoord3sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-extern _X_HIDDEN void __indirect_glTexCoord4dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-extern _X_HIDDEN void __indirect_glTexCoord4fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glTexCoord4i(GLint s, GLint t, GLint r, GLint q);
-extern _X_HIDDEN void __indirect_glTexCoord4iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q);
-extern _X_HIDDEN void __indirect_glTexCoord4sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertex2d(GLdouble x, GLdouble y);
-extern _X_HIDDEN void __indirect_glVertex2dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertex2f(GLfloat x, GLfloat y);
-extern _X_HIDDEN void __indirect_glVertex2fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertex2i(GLint x, GLint y);
-extern _X_HIDDEN void __indirect_glVertex2iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glVertex2s(GLshort x, GLshort y);
-extern _X_HIDDEN void __indirect_glVertex2sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertex3d(GLdouble x, GLdouble y, GLdouble z);
-extern _X_HIDDEN void __indirect_glVertex3dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertex3f(GLfloat x, GLfloat y, GLfloat z);
-extern _X_HIDDEN void __indirect_glVertex3fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertex3i(GLint x, GLint y, GLint z);
-extern _X_HIDDEN void __indirect_glVertex3iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glVertex3s(GLshort x, GLshort y, GLshort z);
-extern _X_HIDDEN void __indirect_glVertex3sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-extern _X_HIDDEN void __indirect_glVertex4dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-extern _X_HIDDEN void __indirect_glVertex4fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertex4i(GLint x, GLint y, GLint z, GLint w);
-extern _X_HIDDEN void __indirect_glVertex4iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w);
-extern _X_HIDDEN void __indirect_glVertex4sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glClipPlane(GLenum plane, const GLdouble * equation);
-extern _X_HIDDEN void __indirect_glColorMaterial(GLenum face, GLenum mode);
-extern _X_HIDDEN void __indirect_glCullFace(GLenum mode);
-extern _X_HIDDEN void __indirect_glFogf(GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glFogfv(GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glFogi(GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glFogiv(GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glFrontFace(GLenum mode);
-extern _X_HIDDEN void __indirect_glHint(GLenum target, GLenum mode);
-extern _X_HIDDEN void __indirect_glLightf(GLenum light, GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glLightfv(GLenum light, GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glLighti(GLenum light, GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glLightiv(GLenum light, GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glLightModelf(GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glLightModelfv(GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glLightModeli(GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glLightModeliv(GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glLineStipple(GLint factor, GLushort pattern);
-extern _X_HIDDEN void __indirect_glLineWidth(GLfloat width);
-extern _X_HIDDEN void __indirect_glMaterialf(GLenum face, GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glMaterialfv(GLenum face, GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glMateriali(GLenum face, GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glMaterialiv(GLenum face, GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glPointSize(GLfloat size);
-extern _X_HIDDEN void __indirect_glPolygonMode(GLenum face, GLenum mode);
-extern _X_HIDDEN void __indirect_glPolygonStipple(const GLubyte * mask);
-extern _X_HIDDEN void __indirect_glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
-extern _X_HIDDEN void __indirect_glShadeModel(GLenum mode);
-extern _X_HIDDEN void __indirect_glTexParameterf(GLenum target, GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glTexParameterfv(GLenum target, GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glTexParameteri(GLenum target, GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glTexParameteriv(GLenum target, GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
-extern _X_HIDDEN void __indirect_glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
-extern _X_HIDDEN void __indirect_glTexEnvf(GLenum target, GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glTexEnvfv(GLenum target, GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glTexEnvi(GLenum target, GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glTexEnviv(GLenum target, GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glTexGend(GLenum coord, GLenum pname, GLdouble param);
-extern _X_HIDDEN void __indirect_glTexGendv(GLenum coord, GLenum pname, const GLdouble * params);
-extern _X_HIDDEN void __indirect_glTexGenf(GLenum coord, GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glTexGenfv(GLenum coord, GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glTexGeni(GLenum coord, GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glTexGeniv(GLenum coord, GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glFeedbackBuffer(GLsizei size, GLenum type, GLfloat * buffer);
-extern _X_HIDDEN void __indirect_glSelectBuffer(GLsizei size, GLuint * buffer);
-extern _X_HIDDEN GLint __indirect_glRenderMode(GLenum mode);
-extern _X_HIDDEN void __indirect_glInitNames(void);
-extern _X_HIDDEN void __indirect_glLoadName(GLuint name);
-extern _X_HIDDEN void __indirect_glPassThrough(GLfloat token);
-extern _X_HIDDEN void __indirect_glPopName(void);
-extern _X_HIDDEN void __indirect_glPushName(GLuint name);
-extern _X_HIDDEN void __indirect_glDrawBuffer(GLenum mode);
-extern _X_HIDDEN void __indirect_glClear(GLbitfield mask);
-extern _X_HIDDEN void __indirect_glClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-extern _X_HIDDEN void __indirect_glClearIndex(GLfloat c);
-extern _X_HIDDEN void __indirect_glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
-extern _X_HIDDEN void __indirect_glClearStencil(GLint s);
-extern _X_HIDDEN void __indirect_glClearDepth(GLclampd depth);
-extern _X_HIDDEN void __indirect_glStencilMask(GLuint mask);
-extern _X_HIDDEN void __indirect_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
-extern _X_HIDDEN void __indirect_glDepthMask(GLboolean flag);
-extern _X_HIDDEN void __indirect_glIndexMask(GLuint mask);
-extern _X_HIDDEN void __indirect_glAccum(GLenum op, GLfloat value);
-extern _X_HIDDEN void __indirect_glDisable(GLenum cap);
-extern _X_HIDDEN void __indirect_glEnable(GLenum cap);
-extern _X_HIDDEN void __indirect_glFinish(void);
-extern _X_HIDDEN void __indirect_glFlush(void);
-extern _X_HIDDEN void __indirect_glPopAttrib(void);
-extern _X_HIDDEN void __indirect_glPushAttrib(GLbitfield mask);
-extern _X_HIDDEN void __indirect_glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points);
-extern _X_HIDDEN void __indirect_glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points);
-extern _X_HIDDEN void __indirect_glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points);
-extern _X_HIDDEN void __indirect_glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points);
-extern _X_HIDDEN void __indirect_glMapGrid1d(GLint un, GLdouble u1, GLdouble u2);
-extern _X_HIDDEN void __indirect_glMapGrid1f(GLint un, GLfloat u1, GLfloat u2);
-extern _X_HIDDEN void __indirect_glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
-extern _X_HIDDEN void __indirect_glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
-extern _X_HIDDEN void __indirect_glEvalCoord1d(GLdouble u);
-extern _X_HIDDEN void __indirect_glEvalCoord1dv(const GLdouble * u);
-extern _X_HIDDEN void __indirect_glEvalCoord1f(GLfloat u);
-extern _X_HIDDEN void __indirect_glEvalCoord1fv(const GLfloat * u);
-extern _X_HIDDEN void __indirect_glEvalCoord2d(GLdouble u, GLdouble v);
-extern _X_HIDDEN void __indirect_glEvalCoord2dv(const GLdouble * u);
-extern _X_HIDDEN void __indirect_glEvalCoord2f(GLfloat u, GLfloat v);
-extern _X_HIDDEN void __indirect_glEvalCoord2fv(const GLfloat * u);
-extern _X_HIDDEN void __indirect_glEvalMesh1(GLenum mode, GLint i1, GLint i2);
-extern _X_HIDDEN void __indirect_glEvalPoint1(GLint i);
-extern _X_HIDDEN void __indirect_glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
-extern _X_HIDDEN void __indirect_glEvalPoint2(GLint i, GLint j);
-extern _X_HIDDEN void __indirect_glAlphaFunc(GLenum func, GLclampf ref);
-extern _X_HIDDEN void __indirect_glBlendFunc(GLenum sfactor, GLenum dfactor);
-extern _X_HIDDEN void __indirect_glLogicOp(GLenum opcode);
-extern _X_HIDDEN void __indirect_glStencilFunc(GLenum func, GLint ref, GLuint mask);
-extern _X_HIDDEN void __indirect_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass);
-extern _X_HIDDEN void __indirect_glDepthFunc(GLenum func);
-extern _X_HIDDEN void __indirect_glPixelZoom(GLfloat xfactor, GLfloat yfactor);
-extern _X_HIDDEN void __indirect_glPixelTransferf(GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glPixelTransferi(GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glPixelStoref(GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glPixelStorei(GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat * values);
-extern _X_HIDDEN void __indirect_glPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint * values);
-extern _X_HIDDEN void __indirect_glPixelMapusv(GLenum map, GLsizei mapsize, const GLushort * values);
-extern _X_HIDDEN void __indirect_glReadBuffer(GLenum mode);
-extern _X_HIDDEN void __indirect_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
-extern _X_HIDDEN void __indirect_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels);
-extern _X_HIDDEN void __indirect_glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels);
-extern _X_HIDDEN void __indirect_glGetBooleanv(GLenum pname, GLboolean * params);
-extern _X_HIDDEN void __indirect_glGetClipPlane(GLenum plane, GLdouble * equation);
-extern _X_HIDDEN void __indirect_glGetDoublev(GLenum pname, GLdouble * params);
-extern _X_HIDDEN GLenum __indirect_glGetError(void);
-extern _X_HIDDEN void __indirect_glGetFloatv(GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetIntegerv(GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetLightfv(GLenum light, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetLightiv(GLenum light, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetMapdv(GLenum target, GLenum query, GLdouble * v);
-extern _X_HIDDEN void __indirect_glGetMapfv(GLenum target, GLenum query, GLfloat * v);
-extern _X_HIDDEN void __indirect_glGetMapiv(GLenum target, GLenum query, GLint * v);
-extern _X_HIDDEN void __indirect_glGetMaterialfv(GLenum face, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetMaterialiv(GLenum face, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetPixelMapfv(GLenum map, GLfloat * values);
-extern _X_HIDDEN void __indirect_glGetPixelMapuiv(GLenum map, GLuint * values);
-extern _X_HIDDEN void __indirect_glGetPixelMapusv(GLenum map, GLushort * values);
-extern _X_HIDDEN void __indirect_glGetPolygonStipple(GLubyte * mask);
-extern _X_HIDDEN const GLubyte * __indirect_glGetString(GLenum name);
-extern _X_HIDDEN void __indirect_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetTexEnviv(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetTexGendv(GLenum coord, GLenum pname, GLdouble * params);
-extern _X_HIDDEN void __indirect_glGetTexGenfv(GLenum coord, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetTexGeniv(GLenum coord, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels);
-extern _X_HIDDEN void __indirect_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetTexParameteriv(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint * params);
-extern _X_HIDDEN GLboolean __indirect_glIsEnabled(GLenum cap);
-extern _X_HIDDEN GLboolean __indirect_glIsList(GLuint list);
-extern _X_HIDDEN void __indirect_glDepthRange(GLclampd zNear, GLclampd zFar);
-extern _X_HIDDEN void __indirect_glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-extern _X_HIDDEN void __indirect_glLoadIdentity(void);
-extern _X_HIDDEN void __indirect_glLoadMatrixf(const GLfloat * m);
-extern _X_HIDDEN void __indirect_glLoadMatrixd(const GLdouble * m);
-extern _X_HIDDEN void __indirect_glMatrixMode(GLenum mode);
-extern _X_HIDDEN void __indirect_glMultMatrixf(const GLfloat * m);
-extern _X_HIDDEN void __indirect_glMultMatrixd(const GLdouble * m);
-extern _X_HIDDEN void __indirect_glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-extern _X_HIDDEN void __indirect_glPopMatrix(void);
-extern _X_HIDDEN void __indirect_glPushMatrix(void);
-extern _X_HIDDEN void __indirect_glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
-extern _X_HIDDEN void __indirect_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
-extern _X_HIDDEN void __indirect_glScaled(GLdouble x, GLdouble y, GLdouble z);
-extern _X_HIDDEN void __indirect_glScalef(GLfloat x, GLfloat y, GLfloat z);
-extern _X_HIDDEN void __indirect_glTranslated(GLdouble x, GLdouble y, GLdouble z);
-extern _X_HIDDEN void __indirect_glTranslatef(GLfloat x, GLfloat y, GLfloat z);
-extern _X_HIDDEN void __indirect_glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
-extern _X_HIDDEN void __indirect_glArrayElement(GLint i);
-extern _X_HIDDEN void __indirect_glBindTexture(GLenum target, GLuint texture);
-extern _X_HIDDEN void __indirect_glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glDisableClientState(GLenum array);
-extern _X_HIDDEN void __indirect_glDrawArrays(GLenum mode, GLint first, GLsizei count);
-extern _X_HIDDEN void __indirect_glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices);
-extern _X_HIDDEN void __indirect_glEdgeFlagPointer(GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glEnableClientState(GLenum array);
-extern _X_HIDDEN void __indirect_glIndexPointer(GLenum type, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glIndexub(GLubyte c);
-extern _X_HIDDEN void __indirect_glIndexubv(const GLubyte * c);
-extern _X_HIDDEN void __indirect_glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glNormalPointer(GLenum type, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glPolygonOffset(GLfloat factor, GLfloat units);
-extern _X_HIDDEN void __indirect_glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN GLboolean __indirect_glAreTexturesResident(GLsizei n, const GLuint * textures, GLboolean * residences);
-GLAPI GLboolean GLAPIENTRY glAreTexturesResidentEXT(GLsizei n, const GLuint * textures, GLboolean * residences);
-extern _X_HIDDEN void __indirect_glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
-extern _X_HIDDEN void __indirect_glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-extern _X_HIDDEN void __indirect_glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-extern _X_HIDDEN void __indirect_glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-extern _X_HIDDEN void __indirect_glDeleteTextures(GLsizei n, const GLuint * textures);
-GLAPI void GLAPIENTRY glDeleteTexturesEXT(GLsizei n, const GLuint * textures);
-extern _X_HIDDEN void __indirect_glGenTextures(GLsizei n, GLuint * textures);
-GLAPI void GLAPIENTRY glGenTexturesEXT(GLsizei n, GLuint * textures);
-extern _X_HIDDEN void __indirect_glGetPointerv(GLenum pname, GLvoid ** params);
-extern _X_HIDDEN GLboolean __indirect_glIsTexture(GLuint texture);
-GLAPI GLboolean GLAPIENTRY glIsTextureEXT(GLuint texture);
-extern _X_HIDDEN void __indirect_glPrioritizeTextures(GLsizei n, const GLuint * textures, const GLclampf * priorities);
-extern _X_HIDDEN void __indirect_glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels);
-extern _X_HIDDEN void __indirect_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels);
-extern _X_HIDDEN void __indirect_glPopClientAttrib(void);
-extern _X_HIDDEN void __indirect_glPushClientAttrib(GLbitfield mask);
-extern _X_HIDDEN void __indirect_glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
-extern _X_HIDDEN void __indirect_glBlendEquation(GLenum mode);
-extern _X_HIDDEN void __indirect_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices);
-extern _X_HIDDEN void __indirect_glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table);
-extern _X_HIDDEN void __indirect_glColorTableParameterfv(GLenum target, GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glColorTableParameteriv(GLenum target, GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-extern _X_HIDDEN void __indirect_glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid * table);
-extern _X_HIDDEN void gl_dispatch_stub_343(GLenum target, GLenum format, GLenum type, GLvoid * table);
-extern _X_HIDDEN void __indirect_glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void gl_dispatch_stub_344(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetColorTableParameteriv(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void gl_dispatch_stub_345(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data);
-extern _X_HIDDEN void __indirect_glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
-extern _X_HIDDEN void __indirect_glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image);
-extern _X_HIDDEN void __indirect_glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image);
-extern _X_HIDDEN void __indirect_glConvolutionParameterf(GLenum target, GLenum pname, GLfloat params);
-extern _X_HIDDEN void __indirect_glConvolutionParameterfv(GLenum target, GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glConvolutionParameteri(GLenum target, GLenum pname, GLint params);
-extern _X_HIDDEN void __indirect_glConvolutionParameteriv(GLenum target, GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-extern _X_HIDDEN void __indirect_glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
-extern _X_HIDDEN void __indirect_glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid * image);
-extern _X_HIDDEN void gl_dispatch_stub_356(GLenum target, GLenum format, GLenum type, GLvoid * image);
-extern _X_HIDDEN void __indirect_glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void gl_dispatch_stub_357(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void gl_dispatch_stub_358(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span);
-extern _X_HIDDEN void gl_dispatch_stub_359(GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span);
-#define gl_dispatch_stub_GetSeparableFilterEXT gl_dispatch_stub_359
-extern _X_HIDDEN void __indirect_glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column);
-extern _X_HIDDEN void __indirect_glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
-extern _X_HIDDEN void gl_dispatch_stub_361(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
-extern _X_HIDDEN void __indirect_glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void gl_dispatch_stub_362(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetHistogramParameteriv(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void gl_dispatch_stub_363(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
-extern _X_HIDDEN void gl_dispatch_stub_364(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
-extern _X_HIDDEN void __indirect_glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void gl_dispatch_stub_365(GLenum target, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void gl_dispatch_stub_366(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
-extern _X_HIDDEN void __indirect_glMinmax(GLenum target, GLenum internalformat, GLboolean sink);
-extern _X_HIDDEN void __indirect_glResetHistogram(GLenum target);
-extern _X_HIDDEN void __indirect_glResetMinmax(GLenum target);
-extern _X_HIDDEN void __indirect_glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
-extern _X_HIDDEN void __indirect_glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels);
-extern _X_HIDDEN void __indirect_glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-extern _X_HIDDEN void __indirect_glActiveTexture(GLenum texture);
-extern _X_HIDDEN void __indirect_glClientActiveTexture(GLenum texture);
-extern _X_HIDDEN void __indirect_glMultiTexCoord1d(GLenum target, GLdouble s);
-extern _X_HIDDEN void __indirect_glMultiTexCoord1dv(GLenum target, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord1fARB(GLenum target, GLfloat s);
-extern _X_HIDDEN void __indirect_glMultiTexCoord1fvARB(GLenum target, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord1i(GLenum target, GLint s);
-extern _X_HIDDEN void __indirect_glMultiTexCoord1iv(GLenum target, const GLint * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord1s(GLenum target, GLshort s);
-extern _X_HIDDEN void __indirect_glMultiTexCoord1sv(GLenum target, const GLshort * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord2d(GLenum target, GLdouble s, GLdouble t);
-extern _X_HIDDEN void __indirect_glMultiTexCoord2dv(GLenum target, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
-extern _X_HIDDEN void __indirect_glMultiTexCoord2fvARB(GLenum target, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord2i(GLenum target, GLint s, GLint t);
-extern _X_HIDDEN void __indirect_glMultiTexCoord2iv(GLenum target, const GLint * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord2s(GLenum target, GLshort s, GLshort t);
-extern _X_HIDDEN void __indirect_glMultiTexCoord2sv(GLenum target, const GLshort * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord3d(GLenum target, GLdouble s, GLdouble t, GLdouble r);
-extern _X_HIDDEN void __indirect_glMultiTexCoord3dv(GLenum target, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
-extern _X_HIDDEN void __indirect_glMultiTexCoord3fvARB(GLenum target, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord3i(GLenum target, GLint s, GLint t, GLint r);
-extern _X_HIDDEN void __indirect_glMultiTexCoord3iv(GLenum target, const GLint * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord3s(GLenum target, GLshort s, GLshort t, GLshort r);
-extern _X_HIDDEN void __indirect_glMultiTexCoord3sv(GLenum target, const GLshort * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord4d(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-extern _X_HIDDEN void __indirect_glMultiTexCoord4dv(GLenum target, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-extern _X_HIDDEN void __indirect_glMultiTexCoord4fvARB(GLenum target, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord4i(GLenum target, GLint s, GLint t, GLint r, GLint q);
-extern _X_HIDDEN void __indirect_glMultiTexCoord4iv(GLenum target, const GLint * v);
-extern _X_HIDDEN void __indirect_glMultiTexCoord4s(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
-extern _X_HIDDEN void __indirect_glMultiTexCoord4sv(GLenum target, const GLshort * v);
-extern _X_HIDDEN void __indirect_glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid * data);
-extern _X_HIDDEN void __indirect_glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data);
-extern _X_HIDDEN void __indirect_glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * data);
-extern _X_HIDDEN void __indirect_glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * data);
-extern _X_HIDDEN void __indirect_glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data);
-extern _X_HIDDEN void __indirect_glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * data);
-extern _X_HIDDEN void __indirect_glGetCompressedTexImage(GLenum target, GLint level, GLvoid * img);
-extern _X_HIDDEN void __indirect_glLoadTransposeMatrixd(const GLdouble * m);
-extern _X_HIDDEN void __indirect_glLoadTransposeMatrixf(const GLfloat * m);
-extern _X_HIDDEN void __indirect_glMultTransposeMatrixd(const GLdouble * m);
-extern _X_HIDDEN void __indirect_glMultTransposeMatrixf(const GLfloat * m);
-extern _X_HIDDEN void __indirect_glSampleCoverage(GLclampf value, GLboolean invert);
-extern _X_HIDDEN void __indirect_glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
-extern _X_HIDDEN void __indirect_glFogCoordPointer(GLenum type, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glFogCoordd(GLdouble coord);
-extern _X_HIDDEN void __indirect_glFogCoorddv(const GLdouble * coord);
-extern _X_HIDDEN void __indirect_glMultiDrawArrays(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount);
-extern _X_HIDDEN void __indirect_glPointParameterf(GLenum pname, GLfloat param);
-extern _X_HIDDEN void __indirect_glPointParameterfv(GLenum pname, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glPointParameteri(GLenum pname, GLint param);
-extern _X_HIDDEN void __indirect_glPointParameteriv(GLenum pname, const GLint * params);
-extern _X_HIDDEN void __indirect_glSecondaryColor3b(GLbyte red, GLbyte green, GLbyte blue);
-extern _X_HIDDEN void __indirect_glSecondaryColor3bv(const GLbyte * v);
-extern _X_HIDDEN void __indirect_glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue);
-extern _X_HIDDEN void __indirect_glSecondaryColor3dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glSecondaryColor3i(GLint red, GLint green, GLint blue);
-extern _X_HIDDEN void __indirect_glSecondaryColor3iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glSecondaryColor3s(GLshort red, GLshort green, GLshort blue);
-extern _X_HIDDEN void __indirect_glSecondaryColor3sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue);
-extern _X_HIDDEN void __indirect_glSecondaryColor3ubv(const GLubyte * v);
-extern _X_HIDDEN void __indirect_glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue);
-extern _X_HIDDEN void __indirect_glSecondaryColor3uiv(const GLuint * v);
-extern _X_HIDDEN void __indirect_glSecondaryColor3us(GLushort red, GLushort green, GLushort blue);
-extern _X_HIDDEN void __indirect_glSecondaryColor3usv(const GLushort * v);
-extern _X_HIDDEN void __indirect_glSecondaryColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glWindowPos2d(GLdouble x, GLdouble y);
-extern _X_HIDDEN void __indirect_glWindowPos2dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glWindowPos2f(GLfloat x, GLfloat y);
-extern _X_HIDDEN void __indirect_glWindowPos2fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glWindowPos2i(GLint x, GLint y);
-extern _X_HIDDEN void __indirect_glWindowPos2iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glWindowPos2s(GLshort x, GLshort y);
-extern _X_HIDDEN void __indirect_glWindowPos2sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glWindowPos3d(GLdouble x, GLdouble y, GLdouble z);
-extern _X_HIDDEN void __indirect_glWindowPos3dv(const GLdouble * v);
-extern _X_HIDDEN void __indirect_glWindowPos3f(GLfloat x, GLfloat y, GLfloat z);
-extern _X_HIDDEN void __indirect_glWindowPos3fv(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glWindowPos3i(GLint x, GLint y, GLint z);
-extern _X_HIDDEN void __indirect_glWindowPos3iv(const GLint * v);
-extern _X_HIDDEN void __indirect_glWindowPos3s(GLshort x, GLshort y, GLshort z);
-extern _X_HIDDEN void __indirect_glWindowPos3sv(const GLshort * v);
-extern _X_HIDDEN void __indirect_glBeginQuery(GLenum target, GLuint id);
-extern _X_HIDDEN void __indirect_glDeleteQueries(GLsizei n, const GLuint * ids);
-extern _X_HIDDEN void __indirect_glEndQuery(GLenum target);
-extern _X_HIDDEN void __indirect_glGenQueries(GLsizei n, GLuint * ids);
-extern _X_HIDDEN void __indirect_glGetQueryObjectiv(GLuint id, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint * params);
-extern _X_HIDDEN void __indirect_glGetQueryiv(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN GLboolean __indirect_glIsQuery(GLuint id);
-extern _X_HIDDEN void __indirect_glBlendEquationSeparate(GLenum modeRGB, GLenum modeA);
-extern _X_HIDDEN void __indirect_glDisableVertexAttribArray(GLuint index);
-extern _X_HIDDEN void __indirect_glDrawBuffers(GLsizei n, const GLenum * bufs);
-extern _X_HIDDEN void __indirect_glEnableVertexAttribArray(GLuint index);
-extern _X_HIDDEN void __indirect_glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid ** pointer);
-extern _X_HIDDEN void __indirect_glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble * params);
-extern _X_HIDDEN void __indirect_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetVertexAttribiv(GLuint index, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glVertexAttrib1d(GLuint index, GLdouble x);
-extern _X_HIDDEN void __indirect_glVertexAttrib1dv(GLuint index, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib1s(GLuint index, GLshort x);
-extern _X_HIDDEN void __indirect_glVertexAttrib1sv(GLuint index, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y);
-extern _X_HIDDEN void __indirect_glVertexAttrib2dv(GLuint index, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib2s(GLuint index, GLshort x, GLshort y);
-extern _X_HIDDEN void __indirect_glVertexAttrib2sv(GLuint index, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z);
-extern _X_HIDDEN void __indirect_glVertexAttrib3dv(GLuint index, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z);
-extern _X_HIDDEN void __indirect_glVertexAttrib3sv(GLuint index, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4Nbv(GLuint index, const GLbyte * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4Niv(GLuint index, const GLint * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4Nsv(GLuint index, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-extern _X_HIDDEN void __indirect_glVertexAttrib4Nubv(GLuint index, const GLubyte * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4Nuiv(GLuint index, const GLuint * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4Nusv(GLuint index, const GLushort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4bv(GLuint index, const GLbyte * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-extern _X_HIDDEN void __indirect_glVertexAttrib4dv(GLuint index, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4iv(GLuint index, const GLint * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-extern _X_HIDDEN void __indirect_glVertexAttrib4sv(GLuint index, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4ubv(GLuint index, const GLubyte * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4uiv(GLuint index, const GLuint * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4usv(GLuint index, const GLushort * v);
-extern _X_HIDDEN void __indirect_glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glClampColor(GLenum target, GLenum clamp);
-extern _X_HIDDEN void __indirect_glBindProgramARB(GLenum target, GLuint program);
-extern _X_HIDDEN void __indirect_glDeleteProgramsARB(GLsizei n, const GLuint * programs);
-extern _X_HIDDEN void __indirect_glGenProgramsARB(GLsizei n, GLuint * programs);
-extern _X_HIDDEN void __indirect_glGetProgramEnvParameterdvARB(GLenum target, GLuint index, GLdouble * params);
-extern _X_HIDDEN void __indirect_glGetProgramEnvParameterfvARB(GLenum target, GLuint index, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetProgramLocalParameterdvARB(GLenum target, GLuint index, GLdouble * params);
-extern _X_HIDDEN void __indirect_glGetProgramLocalParameterfvARB(GLenum target, GLuint index, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetProgramStringARB(GLenum target, GLenum pname, GLvoid * string);
-extern _X_HIDDEN void __indirect_glGetProgramivARB(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN GLboolean __indirect_glIsProgramARB(GLuint program);
-extern _X_HIDDEN void __indirect_glProgramEnvParameter4dARB(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-extern _X_HIDDEN void __indirect_glProgramEnvParameter4dvARB(GLenum target, GLuint index, const GLdouble * params);
-extern _X_HIDDEN void __indirect_glProgramEnvParameter4fARB(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-extern _X_HIDDEN void __indirect_glProgramEnvParameter4fvARB(GLenum target, GLuint index, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glProgramLocalParameter4dARB(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-extern _X_HIDDEN void __indirect_glProgramLocalParameter4dvARB(GLenum target, GLuint index, const GLdouble * params);
-extern _X_HIDDEN void __indirect_glProgramLocalParameter4fARB(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-extern _X_HIDDEN void __indirect_glProgramLocalParameter4fvARB(GLenum target, GLuint index, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glProgramStringARB(GLenum target, GLenum format, GLsizei len, const GLvoid * string);
-extern _X_HIDDEN void __indirect_glVertexAttrib1fARB(GLuint index, GLfloat x);
-extern _X_HIDDEN void __indirect_glVertexAttrib1fvARB(GLuint index, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib2fARB(GLuint index, GLfloat x, GLfloat y);
-extern _X_HIDDEN void __indirect_glVertexAttrib2fvARB(GLuint index, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib3fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z);
-extern _X_HIDDEN void __indirect_glVertexAttrib3fvARB(GLuint index, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-extern _X_HIDDEN void __indirect_glVertexAttrib4fvARB(GLuint index, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glBindFramebuffer(GLenum target, GLuint framebuffer);
-extern _X_HIDDEN void __indirect_glBindRenderbuffer(GLenum target, GLuint renderbuffer);
-extern _X_HIDDEN void __indirect_glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
-extern _X_HIDDEN GLenum __indirect_glCheckFramebufferStatus(GLenum target);
-extern _X_HIDDEN void __indirect_glDeleteFramebuffers(GLsizei n, const GLuint * framebuffers);
-extern _X_HIDDEN void __indirect_glDeleteRenderbuffers(GLsizei n, const GLuint * renderbuffers);
-extern _X_HIDDEN void __indirect_glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
-extern _X_HIDDEN void __indirect_glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-extern _X_HIDDEN void __indirect_glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-extern _X_HIDDEN void __indirect_glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint layer);
-extern _X_HIDDEN void __indirect_glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
-extern _X_HIDDEN void __indirect_glGenFramebuffers(GLsizei n, GLuint * framebuffers);
-extern _X_HIDDEN void __indirect_glGenRenderbuffers(GLsizei n, GLuint * renderbuffers);
-extern _X_HIDDEN void __indirect_glGenerateMipmap(GLenum target);
-extern _X_HIDDEN void __indirect_glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint * params);
-extern _X_HIDDEN GLboolean __indirect_glIsFramebuffer(GLuint framebuffer);
-extern _X_HIDDEN GLboolean __indirect_glIsRenderbuffer(GLuint renderbuffer);
-extern _X_HIDDEN void __indirect_glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
-extern _X_HIDDEN void __indirect_glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
-extern _X_HIDDEN void __indirect_glSampleMaskSGIS(GLclampf value, GLboolean invert);
-extern _X_HIDDEN void __indirect_glSamplePatternSGIS(GLenum pattern);
-extern _X_HIDDEN void __indirect_glColorPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glEdgeFlagPointerEXT(GLsizei stride, GLsizei count, const GLboolean * pointer);
-extern _X_HIDDEN void __indirect_glIndexPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glTexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glSecondaryColor3fEXT(GLfloat red, GLfloat green, GLfloat blue);
-extern _X_HIDDEN void __indirect_glSecondaryColor3fvEXT(const GLfloat * v);
-extern _X_HIDDEN void __indirect_glMultiDrawElementsEXT(GLenum mode, const GLsizei * count, GLenum type, const GLvoid * const * indices, GLsizei primcount);
-extern _X_HIDDEN void __indirect_glFogCoordfEXT(GLfloat coord);
-extern _X_HIDDEN void __indirect_glFogCoordfvEXT(const GLfloat * coord);
-extern _X_HIDDEN GLboolean __indirect_glAreProgramsResidentNV(GLsizei n, const GLuint * ids, GLboolean * residences);
-extern _X_HIDDEN void __indirect_glExecuteProgramNV(GLenum target, GLuint id, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetProgramParameterdvNV(GLenum target, GLuint index, GLenum pname, GLdouble * params);
-extern _X_HIDDEN void __indirect_glGetProgramParameterfvNV(GLenum target, GLuint index, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetProgramStringNV(GLuint id, GLenum pname, GLubyte * program);
-extern _X_HIDDEN void __indirect_glGetProgramivNV(GLuint id, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetTrackMatrixivNV(GLenum target, GLuint address, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glGetVertexAttribdvNV(GLuint index, GLenum pname, GLdouble * params);
-extern _X_HIDDEN void __indirect_glGetVertexAttribfvNV(GLuint index, GLenum pname, GLfloat * params);
-extern _X_HIDDEN void __indirect_glGetVertexAttribivNV(GLuint index, GLenum pname, GLint * params);
-extern _X_HIDDEN void __indirect_glLoadProgramNV(GLenum target, GLuint id, GLsizei len, const GLubyte * program);
-extern _X_HIDDEN void __indirect_glProgramParameters4dvNV(GLenum target, GLuint index, GLsizei num, const GLdouble * params);
-extern _X_HIDDEN void __indirect_glProgramParameters4fvNV(GLenum target, GLuint index, GLsizei num, const GLfloat * params);
-extern _X_HIDDEN void __indirect_glRequestResidentProgramsNV(GLsizei n, const GLuint * ids);
-extern _X_HIDDEN void __indirect_glTrackMatrixNV(GLenum target, GLuint address, GLenum matrix, GLenum transform);
-extern _X_HIDDEN void __indirect_glVertexAttrib1dNV(GLuint index, GLdouble x);
-extern _X_HIDDEN void __indirect_glVertexAttrib1dvNV(GLuint index, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib1fNV(GLuint index, GLfloat x);
-extern _X_HIDDEN void __indirect_glVertexAttrib1fvNV(GLuint index, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib1sNV(GLuint index, GLshort x);
-extern _X_HIDDEN void __indirect_glVertexAttrib1svNV(GLuint index, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib2dNV(GLuint index, GLdouble x, GLdouble y);
-extern _X_HIDDEN void __indirect_glVertexAttrib2dvNV(GLuint index, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib2fNV(GLuint index, GLfloat x, GLfloat y);
-extern _X_HIDDEN void __indirect_glVertexAttrib2fvNV(GLuint index, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib2sNV(GLuint index, GLshort x, GLshort y);
-extern _X_HIDDEN void __indirect_glVertexAttrib2svNV(GLuint index, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib3dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z);
-extern _X_HIDDEN void __indirect_glVertexAttrib3dvNV(GLuint index, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib3fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z);
-extern _X_HIDDEN void __indirect_glVertexAttrib3fvNV(GLuint index, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib3sNV(GLuint index, GLshort x, GLshort y, GLshort z);
-extern _X_HIDDEN void __indirect_glVertexAttrib3svNV(GLuint index, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-extern _X_HIDDEN void __indirect_glVertexAttrib4dvNV(GLuint index, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-extern _X_HIDDEN void __indirect_glVertexAttrib4fvNV(GLuint index, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4sNV(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-extern _X_HIDDEN void __indirect_glVertexAttrib4svNV(GLuint index, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttrib4ubNV(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-extern _X_HIDDEN void __indirect_glVertexAttrib4ubvNV(GLuint index, const GLubyte * v);
-extern _X_HIDDEN void __indirect_glVertexAttribPointerNV(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
-extern _X_HIDDEN void __indirect_glVertexAttribs1dvNV(GLuint index, GLsizei n, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs1fvNV(GLuint index, GLsizei n, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs1svNV(GLuint index, GLsizei n, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs2dvNV(GLuint index, GLsizei n, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs2fvNV(GLuint index, GLsizei n, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs2svNV(GLuint index, GLsizei n, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs3dvNV(GLuint index, GLsizei n, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs3fvNV(GLuint index, GLsizei n, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs3svNV(GLuint index, GLsizei n, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs4dvNV(GLuint index, GLsizei n, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs4fvNV(GLuint index, GLsizei n, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs4svNV(GLuint index, GLsizei n, const GLshort * v);
-extern _X_HIDDEN void __indirect_glVertexAttribs4ubvNV(GLuint index, GLsizei n, const GLubyte * v);
-extern _X_HIDDEN void __indirect_glActiveStencilFaceEXT(GLenum face);
-extern _X_HIDDEN void __indirect_glGetProgramNamedParameterdvNV(GLuint id, GLsizei len, const GLubyte * name, GLdouble * params);
-extern _X_HIDDEN void __indirect_glGetProgramNamedParameterfvNV(GLuint id, GLsizei len, const GLubyte * name, GLfloat * params);
-extern _X_HIDDEN void __indirect_glProgramNamedParameter4dNV(GLuint id, GLsizei len, const GLubyte * name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-extern _X_HIDDEN void __indirect_glProgramNamedParameter4dvNV(GLuint id, GLsizei len, const GLubyte * name, const GLdouble * v);
-extern _X_HIDDEN void __indirect_glProgramNamedParameter4fNV(GLuint id, GLsizei len, const GLubyte * name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-extern _X_HIDDEN void __indirect_glProgramNamedParameter4fvNV(GLuint id, GLsizei len, const GLubyte * name, const GLfloat * v);
-extern _X_HIDDEN void __indirect_glBindFramebufferEXT(GLenum target, GLuint framebuffer);
-extern _X_HIDDEN void __indirect_glBindRenderbufferEXT(GLenum target, GLuint renderbuffer);
-
-#ifdef GLX_INDIRECT_RENDERING
-extern _X_HIDDEN void (*__indirect_get_proc_address(const char *name))(void);
-#endif
-
-# undef FASTCALL
-# undef NOINLINE
-
-#endif /* !defined( _INDIRECT_H_ ) */
diff --git a/lib/mesa/src/glx/indirect_init.c b/lib/mesa/src/glx/indirect_init.c
deleted file mode 100644
index 25d9aa219..000000000
--- a/lib/mesa/src/glx/indirect_init.c
+++ /dev/null
@@ -1,1215 +0,0 @@
-/* DO NOT EDIT - This file generated automatically by glX_proto_send.py (from Mesa) script */
-
-/*
- * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
- * (C) Copyright IBM Corporation 2004
- * All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sub license,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * PRECISION INSIGHT, IBM,
- * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
- * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * \file indirect_init.c
- * Initialize indirect rendering dispatch table.
- *
- * \author Kevin E. Martin <kevin@precisioninsight.com>
- * \author Brian Paul <brian@precisioninsight.com>
- * \author Ian Romanick <idr@us.ibm.com>
- */
-
-#include "indirect_init.h"
-#include "indirect.h"
-#include "glapi.h"
-#include <assert.h>
-
-#ifndef GLX_USE_APPLEGL
-
-/**
- * No-op function used to initialize functions that have no GLX protocol
- * support.
- */
-static int NoOp(void)
-{
- return 0;
-}
-
-/**
- * Create and initialize a new GL dispatch table. The table is initialized
- * with GLX indirect rendering protocol functions.
- */
-struct _glapi_table * __glXNewIndirectAPI( void )
-{
- _glapi_proc *table;
- unsigned entries;
- unsigned i;
- int o;
-
- entries = _glapi_get_dispatch_table_size();
- table = malloc(entries * sizeof(_glapi_proc));
- if (table == NULL)
- return NULL;
-
- /* first, set all entries to point to no-op functions */
- for (i = 0; i < entries; i++) {
- table[i] = (_glapi_proc) NoOp;
- }
-
- /* now, initialize the entries we understand */
-
- /* 1.0 */
-
- table[213] = (_glapi_proc) __indirect_glAccum;
- table[240] = (_glapi_proc) __indirect_glAlphaFunc;
- table[7] = (_glapi_proc) __indirect_glBegin;
- table[8] = (_glapi_proc) __indirect_glBitmap;
- table[241] = (_glapi_proc) __indirect_glBlendFunc;
- table[2] = (_glapi_proc) __indirect_glCallList;
- table[3] = (_glapi_proc) __indirect_glCallLists;
- table[203] = (_glapi_proc) __indirect_glClear;
- table[204] = (_glapi_proc) __indirect_glClearAccum;
- table[206] = (_glapi_proc) __indirect_glClearColor;
- table[208] = (_glapi_proc) __indirect_glClearDepth;
- table[205] = (_glapi_proc) __indirect_glClearIndex;
- table[207] = (_glapi_proc) __indirect_glClearStencil;
- table[150] = (_glapi_proc) __indirect_glClipPlane;
- table[9] = (_glapi_proc) __indirect_glColor3b;
- table[10] = (_glapi_proc) __indirect_glColor3bv;
- table[11] = (_glapi_proc) __indirect_glColor3d;
- table[12] = (_glapi_proc) __indirect_glColor3dv;
- table[13] = (_glapi_proc) __indirect_glColor3f;
- table[14] = (_glapi_proc) __indirect_glColor3fv;
- table[15] = (_glapi_proc) __indirect_glColor3i;
- table[16] = (_glapi_proc) __indirect_glColor3iv;
- table[17] = (_glapi_proc) __indirect_glColor3s;
- table[18] = (_glapi_proc) __indirect_glColor3sv;
- table[19] = (_glapi_proc) __indirect_glColor3ub;
- table[20] = (_glapi_proc) __indirect_glColor3ubv;
- table[21] = (_glapi_proc) __indirect_glColor3ui;
- table[22] = (_glapi_proc) __indirect_glColor3uiv;
- table[23] = (_glapi_proc) __indirect_glColor3us;
- table[24] = (_glapi_proc) __indirect_glColor3usv;
- table[25] = (_glapi_proc) __indirect_glColor4b;
- table[26] = (_glapi_proc) __indirect_glColor4bv;
- table[27] = (_glapi_proc) __indirect_glColor4d;
- table[28] = (_glapi_proc) __indirect_glColor4dv;
- table[29] = (_glapi_proc) __indirect_glColor4f;
- table[30] = (_glapi_proc) __indirect_glColor4fv;
- table[31] = (_glapi_proc) __indirect_glColor4i;
- table[32] = (_glapi_proc) __indirect_glColor4iv;
- table[33] = (_glapi_proc) __indirect_glColor4s;
- table[34] = (_glapi_proc) __indirect_glColor4sv;
- table[35] = (_glapi_proc) __indirect_glColor4ub;
- table[36] = (_glapi_proc) __indirect_glColor4ubv;
- table[37] = (_glapi_proc) __indirect_glColor4ui;
- table[38] = (_glapi_proc) __indirect_glColor4uiv;
- table[39] = (_glapi_proc) __indirect_glColor4us;
- table[40] = (_glapi_proc) __indirect_glColor4usv;
- table[210] = (_glapi_proc) __indirect_glColorMask;
- table[151] = (_glapi_proc) __indirect_glColorMaterial;
- table[255] = (_glapi_proc) __indirect_glCopyPixels;
- table[152] = (_glapi_proc) __indirect_glCullFace;
- table[4] = (_glapi_proc) __indirect_glDeleteLists;
- table[245] = (_glapi_proc) __indirect_glDepthFunc;
- table[211] = (_glapi_proc) __indirect_glDepthMask;
- table[288] = (_glapi_proc) __indirect_glDepthRange;
- table[214] = (_glapi_proc) __indirect_glDisable;
- table[202] = (_glapi_proc) __indirect_glDrawBuffer;
- table[257] = (_glapi_proc) __indirect_glDrawPixels;
- table[41] = (_glapi_proc) __indirect_glEdgeFlag;
- table[42] = (_glapi_proc) __indirect_glEdgeFlagv;
- table[215] = (_glapi_proc) __indirect_glEnable;
- table[43] = (_glapi_proc) __indirect_glEnd;
- table[1] = (_glapi_proc) __indirect_glEndList;
- table[228] = (_glapi_proc) __indirect_glEvalCoord1d;
- table[229] = (_glapi_proc) __indirect_glEvalCoord1dv;
- table[230] = (_glapi_proc) __indirect_glEvalCoord1f;
- table[231] = (_glapi_proc) __indirect_glEvalCoord1fv;
- table[232] = (_glapi_proc) __indirect_glEvalCoord2d;
- table[233] = (_glapi_proc) __indirect_glEvalCoord2dv;
- table[234] = (_glapi_proc) __indirect_glEvalCoord2f;
- table[235] = (_glapi_proc) __indirect_glEvalCoord2fv;
- table[236] = (_glapi_proc) __indirect_glEvalMesh1;
- table[238] = (_glapi_proc) __indirect_glEvalMesh2;
- table[237] = (_glapi_proc) __indirect_glEvalPoint1;
- table[239] = (_glapi_proc) __indirect_glEvalPoint2;
- table[194] = (_glapi_proc) __indirect_glFeedbackBuffer;
- table[216] = (_glapi_proc) __indirect_glFinish;
- table[217] = (_glapi_proc) __indirect_glFlush;
- table[153] = (_glapi_proc) __indirect_glFogf;
- table[154] = (_glapi_proc) __indirect_glFogfv;
- table[155] = (_glapi_proc) __indirect_glFogi;
- table[156] = (_glapi_proc) __indirect_glFogiv;
- table[157] = (_glapi_proc) __indirect_glFrontFace;
- table[289] = (_glapi_proc) __indirect_glFrustum;
- table[5] = (_glapi_proc) __indirect_glGenLists;
- table[258] = (_glapi_proc) __indirect_glGetBooleanv;
- table[259] = (_glapi_proc) __indirect_glGetClipPlane;
- table[260] = (_glapi_proc) __indirect_glGetDoublev;
- table[261] = (_glapi_proc) __indirect_glGetError;
- table[262] = (_glapi_proc) __indirect_glGetFloatv;
- table[263] = (_glapi_proc) __indirect_glGetIntegerv;
- table[264] = (_glapi_proc) __indirect_glGetLightfv;
- table[265] = (_glapi_proc) __indirect_glGetLightiv;
- table[266] = (_glapi_proc) __indirect_glGetMapdv;
- table[267] = (_glapi_proc) __indirect_glGetMapfv;
- table[268] = (_glapi_proc) __indirect_glGetMapiv;
- table[269] = (_glapi_proc) __indirect_glGetMaterialfv;
- table[270] = (_glapi_proc) __indirect_glGetMaterialiv;
- table[271] = (_glapi_proc) __indirect_glGetPixelMapfv;
- table[272] = (_glapi_proc) __indirect_glGetPixelMapuiv;
- table[273] = (_glapi_proc) __indirect_glGetPixelMapusv;
- table[274] = (_glapi_proc) __indirect_glGetPolygonStipple;
- table[275] = (_glapi_proc) __indirect_glGetString;
- table[276] = (_glapi_proc) __indirect_glGetTexEnvfv;
- table[277] = (_glapi_proc) __indirect_glGetTexEnviv;
- table[278] = (_glapi_proc) __indirect_glGetTexGendv;
- table[279] = (_glapi_proc) __indirect_glGetTexGenfv;
- table[280] = (_glapi_proc) __indirect_glGetTexGeniv;
- table[281] = (_glapi_proc) __indirect_glGetTexImage;
- table[284] = (_glapi_proc) __indirect_glGetTexLevelParameterfv;
- table[285] = (_glapi_proc) __indirect_glGetTexLevelParameteriv;
- table[282] = (_glapi_proc) __indirect_glGetTexParameterfv;
- table[283] = (_glapi_proc) __indirect_glGetTexParameteriv;
- table[158] = (_glapi_proc) __indirect_glHint;
- table[212] = (_glapi_proc) __indirect_glIndexMask;
- table[44] = (_glapi_proc) __indirect_glIndexd;
- table[45] = (_glapi_proc) __indirect_glIndexdv;
- table[46] = (_glapi_proc) __indirect_glIndexf;
- table[47] = (_glapi_proc) __indirect_glIndexfv;
- table[48] = (_glapi_proc) __indirect_glIndexi;
- table[49] = (_glapi_proc) __indirect_glIndexiv;
- table[50] = (_glapi_proc) __indirect_glIndexs;
- table[51] = (_glapi_proc) __indirect_glIndexsv;
- table[197] = (_glapi_proc) __indirect_glInitNames;
- table[286] = (_glapi_proc) __indirect_glIsEnabled;
- table[287] = (_glapi_proc) __indirect_glIsList;
- table[163] = (_glapi_proc) __indirect_glLightModelf;
- table[164] = (_glapi_proc) __indirect_glLightModelfv;
- table[165] = (_glapi_proc) __indirect_glLightModeli;
- table[166] = (_glapi_proc) __indirect_glLightModeliv;
- table[159] = (_glapi_proc) __indirect_glLightf;
- table[160] = (_glapi_proc) __indirect_glLightfv;
- table[161] = (_glapi_proc) __indirect_glLighti;
- table[162] = (_glapi_proc) __indirect_glLightiv;
- table[167] = (_glapi_proc) __indirect_glLineStipple;
- table[168] = (_glapi_proc) __indirect_glLineWidth;
- table[6] = (_glapi_proc) __indirect_glListBase;
- table[290] = (_glapi_proc) __indirect_glLoadIdentity;
- table[292] = (_glapi_proc) __indirect_glLoadMatrixd;
- table[291] = (_glapi_proc) __indirect_glLoadMatrixf;
- table[198] = (_glapi_proc) __indirect_glLoadName;
- table[242] = (_glapi_proc) __indirect_glLogicOp;
- table[220] = (_glapi_proc) __indirect_glMap1d;
- table[221] = (_glapi_proc) __indirect_glMap1f;
- table[222] = (_glapi_proc) __indirect_glMap2d;
- table[223] = (_glapi_proc) __indirect_glMap2f;
- table[224] = (_glapi_proc) __indirect_glMapGrid1d;
- table[225] = (_glapi_proc) __indirect_glMapGrid1f;
- table[226] = (_glapi_proc) __indirect_glMapGrid2d;
- table[227] = (_glapi_proc) __indirect_glMapGrid2f;
- table[169] = (_glapi_proc) __indirect_glMaterialf;
- table[170] = (_glapi_proc) __indirect_glMaterialfv;
- table[171] = (_glapi_proc) __indirect_glMateriali;
- table[172] = (_glapi_proc) __indirect_glMaterialiv;
- table[293] = (_glapi_proc) __indirect_glMatrixMode;
- table[295] = (_glapi_proc) __indirect_glMultMatrixd;
- table[294] = (_glapi_proc) __indirect_glMultMatrixf;
- table[0] = (_glapi_proc) __indirect_glNewList;
- table[52] = (_glapi_proc) __indirect_glNormal3b;
- table[53] = (_glapi_proc) __indirect_glNormal3bv;
- table[54] = (_glapi_proc) __indirect_glNormal3d;
- table[55] = (_glapi_proc) __indirect_glNormal3dv;
- table[56] = (_glapi_proc) __indirect_glNormal3f;
- table[57] = (_glapi_proc) __indirect_glNormal3fv;
- table[58] = (_glapi_proc) __indirect_glNormal3i;
- table[59] = (_glapi_proc) __indirect_glNormal3iv;
- table[60] = (_glapi_proc) __indirect_glNormal3s;
- table[61] = (_glapi_proc) __indirect_glNormal3sv;
- table[296] = (_glapi_proc) __indirect_glOrtho;
- table[199] = (_glapi_proc) __indirect_glPassThrough;
- table[251] = (_glapi_proc) __indirect_glPixelMapfv;
- table[252] = (_glapi_proc) __indirect_glPixelMapuiv;
- table[253] = (_glapi_proc) __indirect_glPixelMapusv;
- table[249] = (_glapi_proc) __indirect_glPixelStoref;
- table[250] = (_glapi_proc) __indirect_glPixelStorei;
- table[247] = (_glapi_proc) __indirect_glPixelTransferf;
- table[248] = (_glapi_proc) __indirect_glPixelTransferi;
- table[246] = (_glapi_proc) __indirect_glPixelZoom;
- table[173] = (_glapi_proc) __indirect_glPointSize;
- table[174] = (_glapi_proc) __indirect_glPolygonMode;
- table[175] = (_glapi_proc) __indirect_glPolygonStipple;
- table[218] = (_glapi_proc) __indirect_glPopAttrib;
- table[297] = (_glapi_proc) __indirect_glPopMatrix;
- table[200] = (_glapi_proc) __indirect_glPopName;
- table[219] = (_glapi_proc) __indirect_glPushAttrib;
- table[298] = (_glapi_proc) __indirect_glPushMatrix;
- table[201] = (_glapi_proc) __indirect_glPushName;
- table[62] = (_glapi_proc) __indirect_glRasterPos2d;
- table[63] = (_glapi_proc) __indirect_glRasterPos2dv;
- table[64] = (_glapi_proc) __indirect_glRasterPos2f;
- table[65] = (_glapi_proc) __indirect_glRasterPos2fv;
- table[66] = (_glapi_proc) __indirect_glRasterPos2i;
- table[67] = (_glapi_proc) __indirect_glRasterPos2iv;
- table[68] = (_glapi_proc) __indirect_glRasterPos2s;
- table[69] = (_glapi_proc) __indirect_glRasterPos2sv;
- table[70] = (_glapi_proc) __indirect_glRasterPos3d;
- table[71] = (_glapi_proc) __indirect_glRasterPos3dv;
- table[72] = (_glapi_proc) __indirect_glRasterPos3f;
- table[73] = (_glapi_proc) __indirect_glRasterPos3fv;
- table[74] = (_glapi_proc) __indirect_glRasterPos3i;
- table[75] = (_glapi_proc) __indirect_glRasterPos3iv;
- table[76] = (_glapi_proc) __indirect_glRasterPos3s;
- table[77] = (_glapi_proc) __indirect_glRasterPos3sv;
- table[78] = (_glapi_proc) __indirect_glRasterPos4d;
- table[79] = (_glapi_proc) __indirect_glRasterPos4dv;
- table[80] = (_glapi_proc) __indirect_glRasterPos4f;
- table[81] = (_glapi_proc) __indirect_glRasterPos4fv;
- table[82] = (_glapi_proc) __indirect_glRasterPos4i;
- table[83] = (_glapi_proc) __indirect_glRasterPos4iv;
- table[84] = (_glapi_proc) __indirect_glRasterPos4s;
- table[85] = (_glapi_proc) __indirect_glRasterPos4sv;
- table[254] = (_glapi_proc) __indirect_glReadBuffer;
- table[256] = (_glapi_proc) __indirect_glReadPixels;
- table[86] = (_glapi_proc) __indirect_glRectd;
- table[87] = (_glapi_proc) __indirect_glRectdv;
- table[88] = (_glapi_proc) __indirect_glRectf;
- table[89] = (_glapi_proc) __indirect_glRectfv;
- table[90] = (_glapi_proc) __indirect_glRecti;
- table[91] = (_glapi_proc) __indirect_glRectiv;
- table[92] = (_glapi_proc) __indirect_glRects;
- table[93] = (_glapi_proc) __indirect_glRectsv;
- table[196] = (_glapi_proc) __indirect_glRenderMode;
- table[299] = (_glapi_proc) __indirect_glRotated;
- table[300] = (_glapi_proc) __indirect_glRotatef;
- table[301] = (_glapi_proc) __indirect_glScaled;
- table[302] = (_glapi_proc) __indirect_glScalef;
- table[176] = (_glapi_proc) __indirect_glScissor;
- table[195] = (_glapi_proc) __indirect_glSelectBuffer;
- table[177] = (_glapi_proc) __indirect_glShadeModel;
- table[243] = (_glapi_proc) __indirect_glStencilFunc;
- table[209] = (_glapi_proc) __indirect_glStencilMask;
- table[244] = (_glapi_proc) __indirect_glStencilOp;
- table[94] = (_glapi_proc) __indirect_glTexCoord1d;
- table[95] = (_glapi_proc) __indirect_glTexCoord1dv;
- table[96] = (_glapi_proc) __indirect_glTexCoord1f;
- table[97] = (_glapi_proc) __indirect_glTexCoord1fv;
- table[98] = (_glapi_proc) __indirect_glTexCoord1i;
- table[99] = (_glapi_proc) __indirect_glTexCoord1iv;
- table[100] = (_glapi_proc) __indirect_glTexCoord1s;
- table[101] = (_glapi_proc) __indirect_glTexCoord1sv;
- table[102] = (_glapi_proc) __indirect_glTexCoord2d;
- table[103] = (_glapi_proc) __indirect_glTexCoord2dv;
- table[104] = (_glapi_proc) __indirect_glTexCoord2f;
- table[105] = (_glapi_proc) __indirect_glTexCoord2fv;
- table[106] = (_glapi_proc) __indirect_glTexCoord2i;
- table[107] = (_glapi_proc) __indirect_glTexCoord2iv;
- table[108] = (_glapi_proc) __indirect_glTexCoord2s;
- table[109] = (_glapi_proc) __indirect_glTexCoord2sv;
- table[110] = (_glapi_proc) __indirect_glTexCoord3d;
- table[111] = (_glapi_proc) __indirect_glTexCoord3dv;
- table[112] = (_glapi_proc) __indirect_glTexCoord3f;
- table[113] = (_glapi_proc) __indirect_glTexCoord3fv;
- table[114] = (_glapi_proc) __indirect_glTexCoord3i;
- table[115] = (_glapi_proc) __indirect_glTexCoord3iv;
- table[116] = (_glapi_proc) __indirect_glTexCoord3s;
- table[117] = (_glapi_proc) __indirect_glTexCoord3sv;
- table[118] = (_glapi_proc) __indirect_glTexCoord4d;
- table[119] = (_glapi_proc) __indirect_glTexCoord4dv;
- table[120] = (_glapi_proc) __indirect_glTexCoord4f;
- table[121] = (_glapi_proc) __indirect_glTexCoord4fv;
- table[122] = (_glapi_proc) __indirect_glTexCoord4i;
- table[123] = (_glapi_proc) __indirect_glTexCoord4iv;
- table[124] = (_glapi_proc) __indirect_glTexCoord4s;
- table[125] = (_glapi_proc) __indirect_glTexCoord4sv;
- table[184] = (_glapi_proc) __indirect_glTexEnvf;
- table[185] = (_glapi_proc) __indirect_glTexEnvfv;
- table[186] = (_glapi_proc) __indirect_glTexEnvi;
- table[187] = (_glapi_proc) __indirect_glTexEnviv;
- table[188] = (_glapi_proc) __indirect_glTexGend;
- table[189] = (_glapi_proc) __indirect_glTexGendv;
- table[190] = (_glapi_proc) __indirect_glTexGenf;
- table[191] = (_glapi_proc) __indirect_glTexGenfv;
- table[192] = (_glapi_proc) __indirect_glTexGeni;
- table[193] = (_glapi_proc) __indirect_glTexGeniv;
- table[182] = (_glapi_proc) __indirect_glTexImage1D;
- table[183] = (_glapi_proc) __indirect_glTexImage2D;
- table[178] = (_glapi_proc) __indirect_glTexParameterf;
- table[179] = (_glapi_proc) __indirect_glTexParameterfv;
- table[180] = (_glapi_proc) __indirect_glTexParameteri;
- table[181] = (_glapi_proc) __indirect_glTexParameteriv;
- table[303] = (_glapi_proc) __indirect_glTranslated;
- table[304] = (_glapi_proc) __indirect_glTranslatef;
- table[126] = (_glapi_proc) __indirect_glVertex2d;
- table[127] = (_glapi_proc) __indirect_glVertex2dv;
- table[128] = (_glapi_proc) __indirect_glVertex2f;
- table[129] = (_glapi_proc) __indirect_glVertex2fv;
- table[130] = (_glapi_proc) __indirect_glVertex2i;
- table[131] = (_glapi_proc) __indirect_glVertex2iv;
- table[132] = (_glapi_proc) __indirect_glVertex2s;
- table[133] = (_glapi_proc) __indirect_glVertex2sv;
- table[134] = (_glapi_proc) __indirect_glVertex3d;
- table[135] = (_glapi_proc) __indirect_glVertex3dv;
- table[136] = (_glapi_proc) __indirect_glVertex3f;
- table[137] = (_glapi_proc) __indirect_glVertex3fv;
- table[138] = (_glapi_proc) __indirect_glVertex3i;
- table[139] = (_glapi_proc) __indirect_glVertex3iv;
- table[140] = (_glapi_proc) __indirect_glVertex3s;
- table[141] = (_glapi_proc) __indirect_glVertex3sv;
- table[142] = (_glapi_proc) __indirect_glVertex4d;
- table[143] = (_glapi_proc) __indirect_glVertex4dv;
- table[144] = (_glapi_proc) __indirect_glVertex4f;
- table[145] = (_glapi_proc) __indirect_glVertex4fv;
- table[146] = (_glapi_proc) __indirect_glVertex4i;
- table[147] = (_glapi_proc) __indirect_glVertex4iv;
- table[148] = (_glapi_proc) __indirect_glVertex4s;
- table[149] = (_glapi_proc) __indirect_glVertex4sv;
- table[305] = (_glapi_proc) __indirect_glViewport;
-
- /* 1.1 */
-
- table[322] = (_glapi_proc) __indirect_glAreTexturesResident;
- table[306] = (_glapi_proc) __indirect_glArrayElement;
- table[307] = (_glapi_proc) __indirect_glBindTexture;
- table[308] = (_glapi_proc) __indirect_glColorPointer;
- table[323] = (_glapi_proc) __indirect_glCopyTexImage1D;
- table[324] = (_glapi_proc) __indirect_glCopyTexImage2D;
- table[325] = (_glapi_proc) __indirect_glCopyTexSubImage1D;
- table[326] = (_glapi_proc) __indirect_glCopyTexSubImage2D;
- table[327] = (_glapi_proc) __indirect_glDeleteTextures;
- table[309] = (_glapi_proc) __indirect_glDisableClientState;
- table[310] = (_glapi_proc) __indirect_glDrawArrays;
- table[311] = (_glapi_proc) __indirect_glDrawElements;
- table[312] = (_glapi_proc) __indirect_glEdgeFlagPointer;
- table[313] = (_glapi_proc) __indirect_glEnableClientState;
- table[328] = (_glapi_proc) __indirect_glGenTextures;
- table[329] = (_glapi_proc) __indirect_glGetPointerv;
- table[314] = (_glapi_proc) __indirect_glIndexPointer;
- table[315] = (_glapi_proc) __indirect_glIndexub;
- table[316] = (_glapi_proc) __indirect_glIndexubv;
- table[317] = (_glapi_proc) __indirect_glInterleavedArrays;
- table[330] = (_glapi_proc) __indirect_glIsTexture;
- table[318] = (_glapi_proc) __indirect_glNormalPointer;
- table[319] = (_glapi_proc) __indirect_glPolygonOffset;
- table[334] = (_glapi_proc) __indirect_glPopClientAttrib;
- table[331] = (_glapi_proc) __indirect_glPrioritizeTextures;
- table[335] = (_glapi_proc) __indirect_glPushClientAttrib;
- table[320] = (_glapi_proc) __indirect_glTexCoordPointer;
- table[332] = (_glapi_proc) __indirect_glTexSubImage1D;
- table[333] = (_glapi_proc) __indirect_glTexSubImage2D;
- table[321] = (_glapi_proc) __indirect_glVertexPointer;
-
- /* 1.2 */
-
- table[336] = (_glapi_proc) __indirect_glBlendColor;
- table[337] = (_glapi_proc) __indirect_glBlendEquation;
- table[346] = (_glapi_proc) __indirect_glColorSubTable;
- table[339] = (_glapi_proc) __indirect_glColorTable;
- table[340] = (_glapi_proc) __indirect_glColorTableParameterfv;
- table[341] = (_glapi_proc) __indirect_glColorTableParameteriv;
- table[348] = (_glapi_proc) __indirect_glConvolutionFilter1D;
- table[349] = (_glapi_proc) __indirect_glConvolutionFilter2D;
- table[350] = (_glapi_proc) __indirect_glConvolutionParameterf;
- table[351] = (_glapi_proc) __indirect_glConvolutionParameterfv;
- table[352] = (_glapi_proc) __indirect_glConvolutionParameteri;
- table[353] = (_glapi_proc) __indirect_glConvolutionParameteriv;
- table[347] = (_glapi_proc) __indirect_glCopyColorSubTable;
- table[342] = (_glapi_proc) __indirect_glCopyColorTable;
- table[354] = (_glapi_proc) __indirect_glCopyConvolutionFilter1D;
- table[355] = (_glapi_proc) __indirect_glCopyConvolutionFilter2D;
- table[373] = (_glapi_proc) __indirect_glCopyTexSubImage3D;
- table[338] = (_glapi_proc) __indirect_glDrawRangeElements;
- table[343] = (_glapi_proc) __indirect_glGetColorTable;
- table[344] = (_glapi_proc) __indirect_glGetColorTableParameterfv;
- table[345] = (_glapi_proc) __indirect_glGetColorTableParameteriv;
- table[356] = (_glapi_proc) __indirect_glGetConvolutionFilter;
- table[357] = (_glapi_proc) __indirect_glGetConvolutionParameterfv;
- table[358] = (_glapi_proc) __indirect_glGetConvolutionParameteriv;
- table[361] = (_glapi_proc) __indirect_glGetHistogram;
- table[362] = (_glapi_proc) __indirect_glGetHistogramParameterfv;
- table[363] = (_glapi_proc) __indirect_glGetHistogramParameteriv;
- table[364] = (_glapi_proc) __indirect_glGetMinmax;
- table[365] = (_glapi_proc) __indirect_glGetMinmaxParameterfv;
- table[366] = (_glapi_proc) __indirect_glGetMinmaxParameteriv;
- table[359] = (_glapi_proc) __indirect_glGetSeparableFilter;
- table[367] = (_glapi_proc) __indirect_glHistogram;
- table[368] = (_glapi_proc) __indirect_glMinmax;
- table[369] = (_glapi_proc) __indirect_glResetHistogram;
- table[370] = (_glapi_proc) __indirect_glResetMinmax;
- table[360] = (_glapi_proc) __indirect_glSeparableFilter2D;
- table[371] = (_glapi_proc) __indirect_glTexImage3D;
- table[372] = (_glapi_proc) __indirect_glTexSubImage3D;
-
- /* 1.3 */
-
- table[374] = (_glapi_proc) __indirect_glActiveTexture;
- table[375] = (_glapi_proc) __indirect_glClientActiveTexture;
- o = _glapi_get_proc_offset("glCompressedTexImage1D");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glCompressedTexImage1D;
- o = _glapi_get_proc_offset("glCompressedTexImage2D");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glCompressedTexImage2D;
- o = _glapi_get_proc_offset("glCompressedTexImage3D");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glCompressedTexImage3D;
- o = _glapi_get_proc_offset("glCompressedTexSubImage1D");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glCompressedTexSubImage1D;
- o = _glapi_get_proc_offset("glCompressedTexSubImage2D");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glCompressedTexSubImage2D;
- o = _glapi_get_proc_offset("glCompressedTexSubImage3D");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glCompressedTexSubImage3D;
- o = _glapi_get_proc_offset("glGetCompressedTexImage");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetCompressedTexImage;
- o = _glapi_get_proc_offset("glLoadTransposeMatrixd");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glLoadTransposeMatrixd;
- o = _glapi_get_proc_offset("glLoadTransposeMatrixf");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glLoadTransposeMatrixf;
- o = _glapi_get_proc_offset("glMultTransposeMatrixd");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glMultTransposeMatrixd;
- o = _glapi_get_proc_offset("glMultTransposeMatrixf");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glMultTransposeMatrixf;
- table[376] = (_glapi_proc) __indirect_glMultiTexCoord1d;
- table[377] = (_glapi_proc) __indirect_glMultiTexCoord1dv;
- table[380] = (_glapi_proc) __indirect_glMultiTexCoord1i;
- table[381] = (_glapi_proc) __indirect_glMultiTexCoord1iv;
- table[382] = (_glapi_proc) __indirect_glMultiTexCoord1s;
- table[383] = (_glapi_proc) __indirect_glMultiTexCoord1sv;
- table[384] = (_glapi_proc) __indirect_glMultiTexCoord2d;
- table[385] = (_glapi_proc) __indirect_glMultiTexCoord2dv;
- table[388] = (_glapi_proc) __indirect_glMultiTexCoord2i;
- table[389] = (_glapi_proc) __indirect_glMultiTexCoord2iv;
- table[390] = (_glapi_proc) __indirect_glMultiTexCoord2s;
- table[391] = (_glapi_proc) __indirect_glMultiTexCoord2sv;
- table[392] = (_glapi_proc) __indirect_glMultiTexCoord3d;
- table[393] = (_glapi_proc) __indirect_glMultiTexCoord3dv;
- table[396] = (_glapi_proc) __indirect_glMultiTexCoord3i;
- table[397] = (_glapi_proc) __indirect_glMultiTexCoord3iv;
- table[398] = (_glapi_proc) __indirect_glMultiTexCoord3s;
- table[399] = (_glapi_proc) __indirect_glMultiTexCoord3sv;
- table[400] = (_glapi_proc) __indirect_glMultiTexCoord4d;
- table[401] = (_glapi_proc) __indirect_glMultiTexCoord4dv;
- table[404] = (_glapi_proc) __indirect_glMultiTexCoord4i;
- table[405] = (_glapi_proc) __indirect_glMultiTexCoord4iv;
- table[406] = (_glapi_proc) __indirect_glMultiTexCoord4s;
- table[407] = (_glapi_proc) __indirect_glMultiTexCoord4sv;
- o = _glapi_get_proc_offset("glSampleCoverage");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSampleCoverage;
-
- /* 1.4 */
-
- o = _glapi_get_proc_offset("glBlendFuncSeparate");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glBlendFuncSeparate;
- o = _glapi_get_proc_offset("glFogCoordPointer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFogCoordPointer;
- o = _glapi_get_proc_offset("glFogCoordd");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFogCoordd;
- o = _glapi_get_proc_offset("glFogCoorddv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFogCoorddv;
- o = _glapi_get_proc_offset("glMultiDrawArrays");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glMultiDrawArrays;
- o = _glapi_get_proc_offset("glPointParameterf");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glPointParameterf;
- o = _glapi_get_proc_offset("glPointParameterfv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glPointParameterfv;
- o = _glapi_get_proc_offset("glPointParameteri");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glPointParameteri;
- o = _glapi_get_proc_offset("glPointParameteriv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glPointParameteriv;
- o = _glapi_get_proc_offset("glSecondaryColor3b");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3b;
- o = _glapi_get_proc_offset("glSecondaryColor3bv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3bv;
- o = _glapi_get_proc_offset("glSecondaryColor3d");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3d;
- o = _glapi_get_proc_offset("glSecondaryColor3dv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3dv;
- o = _glapi_get_proc_offset("glSecondaryColor3i");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3i;
- o = _glapi_get_proc_offset("glSecondaryColor3iv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3iv;
- o = _glapi_get_proc_offset("glSecondaryColor3s");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3s;
- o = _glapi_get_proc_offset("glSecondaryColor3sv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3sv;
- o = _glapi_get_proc_offset("glSecondaryColor3ub");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3ub;
- o = _glapi_get_proc_offset("glSecondaryColor3ubv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3ubv;
- o = _glapi_get_proc_offset("glSecondaryColor3ui");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3ui;
- o = _glapi_get_proc_offset("glSecondaryColor3uiv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3uiv;
- o = _glapi_get_proc_offset("glSecondaryColor3us");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3us;
- o = _glapi_get_proc_offset("glSecondaryColor3usv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3usv;
- o = _glapi_get_proc_offset("glSecondaryColorPointer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColorPointer;
- o = _glapi_get_proc_offset("glWindowPos2d");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos2d;
- o = _glapi_get_proc_offset("glWindowPos2dv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos2dv;
- o = _glapi_get_proc_offset("glWindowPos2f");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos2f;
- o = _glapi_get_proc_offset("glWindowPos2fv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos2fv;
- o = _glapi_get_proc_offset("glWindowPos2i");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos2i;
- o = _glapi_get_proc_offset("glWindowPos2iv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos2iv;
- o = _glapi_get_proc_offset("glWindowPos2s");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos2s;
- o = _glapi_get_proc_offset("glWindowPos2sv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos2sv;
- o = _glapi_get_proc_offset("glWindowPos3d");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos3d;
- o = _glapi_get_proc_offset("glWindowPos3dv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos3dv;
- o = _glapi_get_proc_offset("glWindowPos3f");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos3f;
- o = _glapi_get_proc_offset("glWindowPos3fv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos3fv;
- o = _glapi_get_proc_offset("glWindowPos3i");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos3i;
- o = _glapi_get_proc_offset("glWindowPos3iv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos3iv;
- o = _glapi_get_proc_offset("glWindowPos3s");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos3s;
- o = _glapi_get_proc_offset("glWindowPos3sv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glWindowPos3sv;
-
- /* 1.5 */
-
- o = _glapi_get_proc_offset("glBeginQuery");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glBeginQuery;
- o = _glapi_get_proc_offset("glDeleteQueries");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glDeleteQueries;
- o = _glapi_get_proc_offset("glEndQuery");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glEndQuery;
- o = _glapi_get_proc_offset("glGenQueries");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGenQueries;
- o = _glapi_get_proc_offset("glGetQueryObjectiv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetQueryObjectiv;
- o = _glapi_get_proc_offset("glGetQueryObjectuiv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetQueryObjectuiv;
- o = _glapi_get_proc_offset("glGetQueryiv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetQueryiv;
- o = _glapi_get_proc_offset("glIsQuery");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glIsQuery;
-
- /* 2.0 */
-
- o = _glapi_get_proc_offset("glBlendEquationSeparate");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glBlendEquationSeparate;
- o = _glapi_get_proc_offset("glDisableVertexAttribArray");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glDisableVertexAttribArray;
- o = _glapi_get_proc_offset("glDrawBuffers");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glDrawBuffers;
- o = _glapi_get_proc_offset("glEnableVertexAttribArray");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glEnableVertexAttribArray;
- o = _glapi_get_proc_offset("glGetVertexAttribPointerv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetVertexAttribPointerv;
- o = _glapi_get_proc_offset("glGetVertexAttribdv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetVertexAttribdv;
- o = _glapi_get_proc_offset("glGetVertexAttribfv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetVertexAttribfv;
- o = _glapi_get_proc_offset("glGetVertexAttribiv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetVertexAttribiv;
- o = _glapi_get_proc_offset("glVertexAttrib1d");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1d;
- o = _glapi_get_proc_offset("glVertexAttrib1dv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1dv;
- o = _glapi_get_proc_offset("glVertexAttrib1s");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1s;
- o = _glapi_get_proc_offset("glVertexAttrib1sv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1sv;
- o = _glapi_get_proc_offset("glVertexAttrib2d");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2d;
- o = _glapi_get_proc_offset("glVertexAttrib2dv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2dv;
- o = _glapi_get_proc_offset("glVertexAttrib2s");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2s;
- o = _glapi_get_proc_offset("glVertexAttrib2sv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2sv;
- o = _glapi_get_proc_offset("glVertexAttrib3d");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3d;
- o = _glapi_get_proc_offset("glVertexAttrib3dv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3dv;
- o = _glapi_get_proc_offset("glVertexAttrib3s");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3s;
- o = _glapi_get_proc_offset("glVertexAttrib3sv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3sv;
- o = _glapi_get_proc_offset("glVertexAttrib4Nbv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4Nbv;
- o = _glapi_get_proc_offset("glVertexAttrib4Niv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4Niv;
- o = _glapi_get_proc_offset("glVertexAttrib4Nsv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4Nsv;
- o = _glapi_get_proc_offset("glVertexAttrib4Nub");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4Nub;
- o = _glapi_get_proc_offset("glVertexAttrib4Nubv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4Nubv;
- o = _glapi_get_proc_offset("glVertexAttrib4Nuiv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4Nuiv;
- o = _glapi_get_proc_offset("glVertexAttrib4Nusv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4Nusv;
- o = _glapi_get_proc_offset("glVertexAttrib4bv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4bv;
- o = _glapi_get_proc_offset("glVertexAttrib4d");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4d;
- o = _glapi_get_proc_offset("glVertexAttrib4dv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4dv;
- o = _glapi_get_proc_offset("glVertexAttrib4iv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4iv;
- o = _glapi_get_proc_offset("glVertexAttrib4s");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4s;
- o = _glapi_get_proc_offset("glVertexAttrib4sv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4sv;
- o = _glapi_get_proc_offset("glVertexAttrib4ubv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4ubv;
- o = _glapi_get_proc_offset("glVertexAttrib4uiv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4uiv;
- o = _glapi_get_proc_offset("glVertexAttrib4usv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4usv;
- o = _glapi_get_proc_offset("glVertexAttribPointer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribPointer;
-
- /* 3.0 */
-
- o = _glapi_get_proc_offset("glClampColor");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glClampColor;
-
- /* 1. GL_ARB_multitexture */
-
- table[378] = (_glapi_proc) __indirect_glMultiTexCoord1fARB;
- table[379] = (_glapi_proc) __indirect_glMultiTexCoord1fvARB;
- table[386] = (_glapi_proc) __indirect_glMultiTexCoord2fARB;
- table[387] = (_glapi_proc) __indirect_glMultiTexCoord2fvARB;
- table[394] = (_glapi_proc) __indirect_glMultiTexCoord3fARB;
- table[395] = (_glapi_proc) __indirect_glMultiTexCoord3fvARB;
- table[402] = (_glapi_proc) __indirect_glMultiTexCoord4fARB;
- table[403] = (_glapi_proc) __indirect_glMultiTexCoord4fvARB;
-
- /* 26. GL_ARB_vertex_program */
-
- o = _glapi_get_proc_offset("glBindProgramARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glBindProgramARB;
- o = _glapi_get_proc_offset("glDeleteProgramsARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glDeleteProgramsARB;
- o = _glapi_get_proc_offset("glGenProgramsARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGenProgramsARB;
- o = _glapi_get_proc_offset("glGetProgramEnvParameterdvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramEnvParameterdvARB;
- o = _glapi_get_proc_offset("glGetProgramEnvParameterfvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramEnvParameterfvARB;
- o = _glapi_get_proc_offset("glGetProgramLocalParameterdvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramLocalParameterdvARB;
- o = _glapi_get_proc_offset("glGetProgramLocalParameterfvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramLocalParameterfvARB;
- o = _glapi_get_proc_offset("glGetProgramStringARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramStringARB;
- o = _glapi_get_proc_offset("glGetProgramivARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramivARB;
- o = _glapi_get_proc_offset("glIsProgramARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glIsProgramARB;
- o = _glapi_get_proc_offset("glProgramEnvParameter4dARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramEnvParameter4dARB;
- o = _glapi_get_proc_offset("glProgramEnvParameter4dvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramEnvParameter4dvARB;
- o = _glapi_get_proc_offset("glProgramEnvParameter4fARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramEnvParameter4fARB;
- o = _glapi_get_proc_offset("glProgramEnvParameter4fvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramEnvParameter4fvARB;
- o = _glapi_get_proc_offset("glProgramLocalParameter4dARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramLocalParameter4dARB;
- o = _glapi_get_proc_offset("glProgramLocalParameter4dvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramLocalParameter4dvARB;
- o = _glapi_get_proc_offset("glProgramLocalParameter4fARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramLocalParameter4fARB;
- o = _glapi_get_proc_offset("glProgramLocalParameter4fvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramLocalParameter4fvARB;
- o = _glapi_get_proc_offset("glProgramStringARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramStringARB;
- o = _glapi_get_proc_offset("glVertexAttrib1fARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1fARB;
- o = _glapi_get_proc_offset("glVertexAttrib1fvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1fvARB;
- o = _glapi_get_proc_offset("glVertexAttrib2fARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2fARB;
- o = _glapi_get_proc_offset("glVertexAttrib2fvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2fvARB;
- o = _glapi_get_proc_offset("glVertexAttrib3fARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3fARB;
- o = _glapi_get_proc_offset("glVertexAttrib3fvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3fvARB;
- o = _glapi_get_proc_offset("glVertexAttrib4fARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4fARB;
- o = _glapi_get_proc_offset("glVertexAttrib4fvARB");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4fvARB;
-
- /* 45. GL_ARB_framebuffer_object */
-
- o = _glapi_get_proc_offset("glBindFramebuffer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glBindFramebuffer;
- o = _glapi_get_proc_offset("glBindRenderbuffer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glBindRenderbuffer;
- o = _glapi_get_proc_offset("glBlitFramebuffer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glBlitFramebuffer;
- o = _glapi_get_proc_offset("glCheckFramebufferStatus");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glCheckFramebufferStatus;
- o = _glapi_get_proc_offset("glDeleteFramebuffers");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glDeleteFramebuffers;
- o = _glapi_get_proc_offset("glDeleteRenderbuffers");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glDeleteRenderbuffers;
- o = _glapi_get_proc_offset("glFramebufferRenderbuffer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFramebufferRenderbuffer;
- o = _glapi_get_proc_offset("glFramebufferTexture1D");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFramebufferTexture1D;
- o = _glapi_get_proc_offset("glFramebufferTexture2D");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFramebufferTexture2D;
- o = _glapi_get_proc_offset("glFramebufferTexture3D");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFramebufferTexture3D;
- o = _glapi_get_proc_offset("glFramebufferTextureLayer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFramebufferTextureLayer;
- o = _glapi_get_proc_offset("glGenFramebuffers");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGenFramebuffers;
- o = _glapi_get_proc_offset("glGenRenderbuffers");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGenRenderbuffers;
- o = _glapi_get_proc_offset("glGenerateMipmap");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGenerateMipmap;
- o = _glapi_get_proc_offset("glGetFramebufferAttachmentParameteriv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetFramebufferAttachmentParameteriv;
- o = _glapi_get_proc_offset("glGetRenderbufferParameteriv");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetRenderbufferParameteriv;
- o = _glapi_get_proc_offset("glIsFramebuffer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glIsFramebuffer;
- o = _glapi_get_proc_offset("glIsRenderbuffer");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glIsRenderbuffer;
- o = _glapi_get_proc_offset("glRenderbufferStorage");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glRenderbufferStorage;
- o = _glapi_get_proc_offset("glRenderbufferStorageMultisample");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glRenderbufferStorageMultisample;
-
- /* 25. GL_SGIS_multisample */
-
- o = _glapi_get_proc_offset("glSampleMaskSGIS");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSampleMaskSGIS;
- o = _glapi_get_proc_offset("glSamplePatternSGIS");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSamplePatternSGIS;
-
- /* 30. GL_EXT_vertex_array */
-
- o = _glapi_get_proc_offset("glColorPointerEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glColorPointerEXT;
- o = _glapi_get_proc_offset("glEdgeFlagPointerEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glEdgeFlagPointerEXT;
- o = _glapi_get_proc_offset("glIndexPointerEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glIndexPointerEXT;
- o = _glapi_get_proc_offset("glNormalPointerEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glNormalPointerEXT;
- o = _glapi_get_proc_offset("glTexCoordPointerEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glTexCoordPointerEXT;
- o = _glapi_get_proc_offset("glVertexPointerEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexPointerEXT;
-
- /* 145. GL_EXT_secondary_color */
-
- o = _glapi_get_proc_offset("glSecondaryColor3fEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3fEXT;
- o = _glapi_get_proc_offset("glSecondaryColor3fvEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glSecondaryColor3fvEXT;
-
- /* 148. GL_EXT_multi_draw_arrays */
-
- o = _glapi_get_proc_offset("glMultiDrawElementsEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glMultiDrawElementsEXT;
-
- /* 149. GL_EXT_fog_coord */
-
- o = _glapi_get_proc_offset("glFogCoordfEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFogCoordfEXT;
- o = _glapi_get_proc_offset("glFogCoordfvEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glFogCoordfvEXT;
-
- /* 233. GL_NV_vertex_program */
-
- o = _glapi_get_proc_offset("glAreProgramsResidentNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glAreProgramsResidentNV;
- o = _glapi_get_proc_offset("glExecuteProgramNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glExecuteProgramNV;
- o = _glapi_get_proc_offset("glGetProgramParameterdvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramParameterdvNV;
- o = _glapi_get_proc_offset("glGetProgramParameterfvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramParameterfvNV;
- o = _glapi_get_proc_offset("glGetProgramStringNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramStringNV;
- o = _glapi_get_proc_offset("glGetProgramivNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramivNV;
- o = _glapi_get_proc_offset("glGetTrackMatrixivNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetTrackMatrixivNV;
- o = _glapi_get_proc_offset("glGetVertexAttribdvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetVertexAttribdvNV;
- o = _glapi_get_proc_offset("glGetVertexAttribfvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetVertexAttribfvNV;
- o = _glapi_get_proc_offset("glGetVertexAttribivNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetVertexAttribivNV;
- o = _glapi_get_proc_offset("glLoadProgramNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glLoadProgramNV;
- o = _glapi_get_proc_offset("glProgramParameters4dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramParameters4dvNV;
- o = _glapi_get_proc_offset("glProgramParameters4fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramParameters4fvNV;
- o = _glapi_get_proc_offset("glRequestResidentProgramsNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glRequestResidentProgramsNV;
- o = _glapi_get_proc_offset("glTrackMatrixNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glTrackMatrixNV;
- o = _glapi_get_proc_offset("glVertexAttrib1dNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1dNV;
- o = _glapi_get_proc_offset("glVertexAttrib1dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1dvNV;
- o = _glapi_get_proc_offset("glVertexAttrib1fNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1fNV;
- o = _glapi_get_proc_offset("glVertexAttrib1fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1fvNV;
- o = _glapi_get_proc_offset("glVertexAttrib1sNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1sNV;
- o = _glapi_get_proc_offset("glVertexAttrib1svNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib1svNV;
- o = _glapi_get_proc_offset("glVertexAttrib2dNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2dNV;
- o = _glapi_get_proc_offset("glVertexAttrib2dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2dvNV;
- o = _glapi_get_proc_offset("glVertexAttrib2fNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2fNV;
- o = _glapi_get_proc_offset("glVertexAttrib2fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2fvNV;
- o = _glapi_get_proc_offset("glVertexAttrib2sNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2sNV;
- o = _glapi_get_proc_offset("glVertexAttrib2svNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib2svNV;
- o = _glapi_get_proc_offset("glVertexAttrib3dNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3dNV;
- o = _glapi_get_proc_offset("glVertexAttrib3dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3dvNV;
- o = _glapi_get_proc_offset("glVertexAttrib3fNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3fNV;
- o = _glapi_get_proc_offset("glVertexAttrib3fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3fvNV;
- o = _glapi_get_proc_offset("glVertexAttrib3sNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3sNV;
- o = _glapi_get_proc_offset("glVertexAttrib3svNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib3svNV;
- o = _glapi_get_proc_offset("glVertexAttrib4dNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4dNV;
- o = _glapi_get_proc_offset("glVertexAttrib4dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4dvNV;
- o = _glapi_get_proc_offset("glVertexAttrib4fNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4fNV;
- o = _glapi_get_proc_offset("glVertexAttrib4fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4fvNV;
- o = _glapi_get_proc_offset("glVertexAttrib4sNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4sNV;
- o = _glapi_get_proc_offset("glVertexAttrib4svNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4svNV;
- o = _glapi_get_proc_offset("glVertexAttrib4ubNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4ubNV;
- o = _glapi_get_proc_offset("glVertexAttrib4ubvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttrib4ubvNV;
- o = _glapi_get_proc_offset("glVertexAttribPointerNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribPointerNV;
- o = _glapi_get_proc_offset("glVertexAttribs1dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs1dvNV;
- o = _glapi_get_proc_offset("glVertexAttribs1fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs1fvNV;
- o = _glapi_get_proc_offset("glVertexAttribs1svNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs1svNV;
- o = _glapi_get_proc_offset("glVertexAttribs2dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs2dvNV;
- o = _glapi_get_proc_offset("glVertexAttribs2fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs2fvNV;
- o = _glapi_get_proc_offset("glVertexAttribs2svNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs2svNV;
- o = _glapi_get_proc_offset("glVertexAttribs3dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs3dvNV;
- o = _glapi_get_proc_offset("glVertexAttribs3fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs3fvNV;
- o = _glapi_get_proc_offset("glVertexAttribs3svNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs3svNV;
- o = _glapi_get_proc_offset("glVertexAttribs4dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs4dvNV;
- o = _glapi_get_proc_offset("glVertexAttribs4fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs4fvNV;
- o = _glapi_get_proc_offset("glVertexAttribs4svNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs4svNV;
- o = _glapi_get_proc_offset("glVertexAttribs4ubvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glVertexAttribs4ubvNV;
-
- /* 268. GL_EXT_stencil_two_side */
-
- o = _glapi_get_proc_offset("glActiveStencilFaceEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glActiveStencilFaceEXT;
-
- /* 282. GL_NV_fragment_program */
-
- o = _glapi_get_proc_offset("glGetProgramNamedParameterdvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramNamedParameterdvNV;
- o = _glapi_get_proc_offset("glGetProgramNamedParameterfvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glGetProgramNamedParameterfvNV;
- o = _glapi_get_proc_offset("glProgramNamedParameter4dNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramNamedParameter4dNV;
- o = _glapi_get_proc_offset("glProgramNamedParameter4dvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramNamedParameter4dvNV;
- o = _glapi_get_proc_offset("glProgramNamedParameter4fNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramNamedParameter4fNV;
- o = _glapi_get_proc_offset("glProgramNamedParameter4fvNV");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glProgramNamedParameter4fvNV;
-
- /* 310. GL_EXT_framebuffer_object */
-
- o = _glapi_get_proc_offset("glBindFramebufferEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glBindFramebufferEXT;
- o = _glapi_get_proc_offset("glBindRenderbufferEXT");
- assert(o > 0);
- table[o] = (_glapi_proc) __indirect_glBindRenderbufferEXT;
-
- return (struct _glapi_table *) table;
-}
-
-#endif
-
diff --git a/lib/mesa/src/glx/indirect_size.c b/lib/mesa/src/glx/indirect_size.c
deleted file mode 100644
index 2644eef07..000000000
--- a/lib/mesa/src/glx/indirect_size.c
+++ /dev/null
@@ -1,379 +0,0 @@
-/* DO NOT EDIT - This file generated automatically by glX_proto_size.py (from Mesa) script */
-
-/*
- * (C) Copyright IBM Corporation 2004
- * All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sub license,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * IBM,
- * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
- * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-
-#include <X11/Xfuncproto.h>
-#include <GL/gl.h>
-#include "indirect_size.h"
-
-#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
-#define PURE __attribute__((pure))
-#else
-#define PURE
-#endif
-
-#if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)
-#define FASTCALL __attribute__((fastcall))
-#else
-#define FASTCALL
-#endif
-
-
-#ifdef HAVE_FUNC_ATTRIBUTE_ALIAS
-#define ALIAS2(from,to) \
- _X_INTERNAL PURE FASTCALL GLint __gl ## from ## _size( GLenum e ) \
- __attribute__ ((alias( # to )));
-#define ALIAS(from,to) ALIAS2( from, __gl ## to ## _size )
-#else
-#define ALIAS(from,to) \
- _X_INTERNAL PURE FASTCALL GLint __gl ## from ## _size( GLenum e ) \
- { return __gl ## to ## _size( e ); }
-#endif
-
-
-_X_INTERNAL PURE FASTCALL GLint
-__glCallLists_size(GLenum e)
-{
- switch (e) {
- case GL_BYTE:
- case GL_UNSIGNED_BYTE:
- return 1;
- case GL_SHORT:
- case GL_UNSIGNED_SHORT:
- case GL_2_BYTES:
- case GL_HALF_FLOAT:
- return 2;
- case GL_3_BYTES:
- return 3;
- case GL_INT:
- case GL_UNSIGNED_INT:
- case GL_FLOAT:
- case GL_4_BYTES:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glFogfv_size(GLenum e)
-{
- switch (e) {
- case GL_FOG_INDEX:
- case GL_FOG_DENSITY:
- case GL_FOG_START:
- case GL_FOG_END:
- case GL_FOG_MODE:
- case GL_FOG_OFFSET_VALUE_SGIX:
- case GL_FOG_DISTANCE_MODE_NV:
- return 1;
- case GL_FOG_COLOR:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glLightfv_size(GLenum e)
-{
- switch (e) {
- case GL_SPOT_EXPONENT:
- case GL_SPOT_CUTOFF:
- case GL_CONSTANT_ATTENUATION:
- case GL_LINEAR_ATTENUATION:
- case GL_QUADRATIC_ATTENUATION:
- return 1;
- case GL_SPOT_DIRECTION:
- return 3;
- case GL_AMBIENT:
- case GL_DIFFUSE:
- case GL_SPECULAR:
- case GL_POSITION:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glLightModelfv_size(GLenum e)
-{
- switch (e) {
- case GL_LIGHT_MODEL_LOCAL_VIEWER:
- case GL_LIGHT_MODEL_TWO_SIDE:
- case GL_LIGHT_MODEL_COLOR_CONTROL:
-/* case GL_LIGHT_MODEL_COLOR_CONTROL_EXT:*/
- return 1;
- case GL_LIGHT_MODEL_AMBIENT:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glMaterialfv_size(GLenum e)
-{
- switch (e) {
- case GL_SHININESS:
- return 1;
- case GL_COLOR_INDEXES:
- return 3;
- case GL_AMBIENT:
- case GL_DIFFUSE:
- case GL_SPECULAR:
- case GL_EMISSION:
- case GL_AMBIENT_AND_DIFFUSE:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glTexParameterfv_size(GLenum e)
-{
- switch (e) {
- case GL_TEXTURE_MAG_FILTER:
- case GL_TEXTURE_MIN_FILTER:
- case GL_TEXTURE_WRAP_S:
- case GL_TEXTURE_WRAP_T:
- case GL_TEXTURE_PRIORITY:
- case GL_TEXTURE_WRAP_R:
- case GL_TEXTURE_COMPARE_FAIL_VALUE_ARB:
-/* case GL_SHADOW_AMBIENT_SGIX:*/
- case GL_TEXTURE_MIN_LOD:
- case GL_TEXTURE_MAX_LOD:
- case GL_TEXTURE_BASE_LEVEL:
- case GL_TEXTURE_MAX_LEVEL:
- case GL_TEXTURE_CLIPMAP_FRAME_SGIX:
- case GL_TEXTURE_LOD_BIAS_S_SGIX:
- case GL_TEXTURE_LOD_BIAS_T_SGIX:
- case GL_TEXTURE_LOD_BIAS_R_SGIX:
- case GL_GENERATE_MIPMAP:
-/* case GL_GENERATE_MIPMAP_SGIS:*/
- case GL_TEXTURE_COMPARE_SGIX:
- case GL_TEXTURE_COMPARE_OPERATOR_SGIX:
- case GL_TEXTURE_MAX_CLAMP_S_SGIX:
- case GL_TEXTURE_MAX_CLAMP_T_SGIX:
- case GL_TEXTURE_MAX_CLAMP_R_SGIX:
- case GL_TEXTURE_MAX_ANISOTROPY_EXT:
- case GL_TEXTURE_LOD_BIAS:
-/* case GL_TEXTURE_LOD_BIAS_EXT:*/
- case GL_TEXTURE_STORAGE_HINT_APPLE:
- case GL_STORAGE_PRIVATE_APPLE:
- case GL_STORAGE_CACHED_APPLE:
- case GL_STORAGE_SHARED_APPLE:
- case GL_DEPTH_TEXTURE_MODE:
-/* case GL_DEPTH_TEXTURE_MODE_ARB:*/
- case GL_TEXTURE_COMPARE_MODE:
-/* case GL_TEXTURE_COMPARE_MODE_ARB:*/
- case GL_TEXTURE_COMPARE_FUNC:
-/* case GL_TEXTURE_COMPARE_FUNC_ARB:*/
- case GL_TEXTURE_UNSIGNED_REMAP_MODE_NV:
- return 1;
- case GL_TEXTURE_CLIPMAP_CENTER_SGIX:
- case GL_TEXTURE_CLIPMAP_OFFSET_SGIX:
- return 2;
- case GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX:
- return 3;
- case GL_TEXTURE_BORDER_COLOR:
- case GL_POST_TEXTURE_FILTER_BIAS_SGIX:
- case GL_POST_TEXTURE_FILTER_SCALE_SGIX:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glTexEnvfv_size(GLenum e)
-{
- switch (e) {
- case GL_ALPHA_SCALE:
- case GL_TEXTURE_ENV_MODE:
- case GL_TEXTURE_LOD_BIAS:
- case GL_COMBINE_RGB:
- case GL_COMBINE_ALPHA:
- case GL_RGB_SCALE:
- case GL_SOURCE0_RGB:
- case GL_SOURCE1_RGB:
- case GL_SOURCE2_RGB:
- case GL_SOURCE3_RGB_NV:
- case GL_SOURCE0_ALPHA:
- case GL_SOURCE1_ALPHA:
- case GL_SOURCE2_ALPHA:
- case GL_SOURCE3_ALPHA_NV:
- case GL_OPERAND0_RGB:
- case GL_OPERAND1_RGB:
- case GL_OPERAND2_RGB:
- case GL_OPERAND3_RGB_NV:
- case GL_OPERAND0_ALPHA:
- case GL_OPERAND1_ALPHA:
- case GL_OPERAND2_ALPHA:
- case GL_OPERAND3_ALPHA_NV:
- case GL_BUMP_TARGET_ATI:
- case GL_COORD_REPLACE_ARB:
-/* case GL_COORD_REPLACE_NV:*/
- return 1;
- case GL_TEXTURE_ENV_COLOR:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glTexGendv_size(GLenum e)
-{
- switch (e) {
- case GL_TEXTURE_GEN_MODE:
- return 1;
- case GL_OBJECT_PLANE:
- case GL_EYE_PLANE:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glMap1d_size(GLenum e)
-{
- switch (e) {
- case GL_MAP1_INDEX:
- case GL_MAP1_TEXTURE_COORD_1:
- return 1;
- case GL_MAP1_TEXTURE_COORD_2:
- return 2;
- case GL_MAP1_NORMAL:
- case GL_MAP1_TEXTURE_COORD_3:
- case GL_MAP1_VERTEX_3:
- return 3;
- case GL_MAP1_COLOR_4:
- case GL_MAP1_TEXTURE_COORD_4:
- case GL_MAP1_VERTEX_4:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glMap2d_size(GLenum e)
-{
- switch (e) {
- case GL_MAP2_INDEX:
- case GL_MAP2_TEXTURE_COORD_1:
- return 1;
- case GL_MAP2_TEXTURE_COORD_2:
- return 2;
- case GL_MAP2_NORMAL:
- case GL_MAP2_TEXTURE_COORD_3:
- case GL_MAP2_VERTEX_3:
- return 3;
- case GL_MAP2_COLOR_4:
- case GL_MAP2_TEXTURE_COORD_4:
- case GL_MAP2_VERTEX_4:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glColorTableParameterfv_size(GLenum e)
-{
- switch (e) {
- case GL_COLOR_TABLE_SCALE:
- case GL_COLOR_TABLE_BIAS:
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glConvolutionParameterfv_size(GLenum e)
-{
- switch (e) {
- case GL_CONVOLUTION_BORDER_MODE:
-/* case GL_CONVOLUTION_BORDER_MODE_EXT:*/
- return 1;
- case GL_CONVOLUTION_FILTER_SCALE:
-/* case GL_CONVOLUTION_FILTER_SCALE_EXT:*/
- case GL_CONVOLUTION_FILTER_BIAS:
-/* case GL_CONVOLUTION_FILTER_BIAS_EXT:*/
- case GL_CONVOLUTION_BORDER_COLOR:
-/* case GL_CONVOLUTION_BORDER_COLOR_HP:*/
- return 4;
- default:
- return 0;
- }
-}
-
-_X_INTERNAL PURE FASTCALL GLint
-__glPointParameterfv_size(GLenum e)
-{
- switch (e) {
- case GL_POINT_SIZE_MIN:
-/* case GL_POINT_SIZE_MIN_ARB:*/
-/* case GL_POINT_SIZE_MIN_SGIS:*/
- case GL_POINT_SIZE_MAX:
-/* case GL_POINT_SIZE_MAX_ARB:*/
-/* case GL_POINT_SIZE_MAX_SGIS:*/
- case GL_POINT_FADE_THRESHOLD_SIZE:
-/* case GL_POINT_FADE_THRESHOLD_SIZE_ARB:*/
-/* case GL_POINT_FADE_THRESHOLD_SIZE_SGIS:*/
- case GL_POINT_SPRITE_R_MODE_NV:
- case GL_POINT_SPRITE_COORD_ORIGIN:
- return 1;
- case GL_POINT_DISTANCE_ATTENUATION:
-/* case GL_POINT_DISTANCE_ATTENUATION_ARB:*/
-/* case GL_POINT_DISTANCE_ATTENUATION_SGIS:*/
- return 3;
- default:
- return 0;
- }
-}
-
-ALIAS(Fogiv, Fogfv)
- ALIAS(Lightiv, Lightfv)
- ALIAS(LightModeliv, LightModelfv)
- ALIAS(Materialiv, Materialfv)
- ALIAS(TexParameteriv, TexParameterfv)
- ALIAS(TexEnviv, TexEnvfv)
- ALIAS(TexGenfv, TexGendv)
- ALIAS(TexGeniv, TexGendv)
- ALIAS(Map1f, Map1d)
- ALIAS(Map2f, Map2d)
- ALIAS(ColorTableParameteriv, ColorTableParameterfv)
- ALIAS(ConvolutionParameteriv, ConvolutionParameterfv)
- ALIAS(PointParameteriv, PointParameterfv)
-#undef PURE
-#undef FASTCALL
diff --git a/lib/mesa/src/glx/indirect_size.h b/lib/mesa/src/glx/indirect_size.h
deleted file mode 100644
index 6a3d14cc4..000000000
--- a/lib/mesa/src/glx/indirect_size.h
+++ /dev/null
@@ -1,85 +0,0 @@
-/* DO NOT EDIT - This file generated automatically by glX_proto_size.py (from Mesa) script */
-
-/*
- * (C) Copyright IBM Corporation 2004
- * All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sub license,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * IBM,
- * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
- * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-#if !defined( _INDIRECT_SIZE_H_ )
-#define _INDIRECT_SIZE_H_
-
-/**
- * \file
- * Prototypes for functions used to determine the number of data elements in
- * various GLX protocol messages.
- *
- * \author Ian Romanick <idr@us.ibm.com>
- */
-
-#include <X11/Xfuncproto.h>
-
-#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
-#define PURE __attribute__((pure))
-#else
-#define PURE
-#endif
-
-#if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)
-#define FASTCALL __attribute__((fastcall))
-#else
-#define FASTCALL
-#endif
-
-extern _X_INTERNAL PURE FASTCALL GLint __glCallLists_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glFogfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glFogiv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glLightfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glLightiv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glLightModelfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glLightModeliv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glMaterialfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glMaterialiv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glTexParameterfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glTexParameteriv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glTexEnvfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glTexEnviv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glTexGendv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glTexGenfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glTexGeniv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glMap1d_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glMap1f_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glMap2d_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glMap2f_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glColorTableParameterfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glColorTableParameteriv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint
-__glConvolutionParameterfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint
-__glConvolutionParameteriv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glPointParameterfv_size(GLenum);
-extern _X_INTERNAL PURE FASTCALL GLint __glPointParameteriv_size(GLenum);
-
-#undef PURE
-#undef FASTCALL
-
-#endif /* !defined( _INDIRECT_SIZE_H_ ) */
diff --git a/lib/mesa/src/glx/meson.build b/lib/mesa/src/glx/meson.build
index a61f959e8..caa7127d6 100644
--- a/lib/mesa/src/glx/meson.build
+++ b/lib/mesa/src/glx/meson.build
@@ -1,4 +1,4 @@
-# Copyright © 2017 Intel Corporation
+# Copyright © 2017-2019 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -70,7 +70,7 @@ extra_libs_libglx = []
extra_deps_libgl = []
extra_ld_args_libgl = []
-if with_dri
+if with_glx == 'dri'
files_libglx += files(
'dri_common.c',
'dri_common.h',
@@ -83,7 +83,7 @@ if with_dri
endif
# dri2
-if with_dri and with_dri_platform == 'drm' and dep_libdrm.found()
+if with_glx == 'dri' and with_dri_platform == 'drm' and dep_libdrm.found()
files_libglx += files(
'dri2.c',
'dri2_glx.c',
@@ -134,22 +134,33 @@ endif
gl_lib_cargs = [
'-D_REENTRANT',
- '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path),
]
+if host_machine.system() != 'openbsd'
+ gl_lib_define = [
+ '-DGL_LIB_NAME="lib@0@.so.@1@"'.format(gl_lib_name, gl_lib_version.split('.')[0]),
+ ]
+else
+ gl_lib_define = [
+ '-DGL_LIB_NAME="lib@0@.so"'.format(gl_lib_name )
+ ]
+endif
+
libglx = static_library(
'glx',
[files_libglx, glx_generated],
- include_directories : [inc_common, inc_glapi, inc_loader, inc_gl_internal],
+ include_directories : [inc_common, inc_glapi, inc_loader],
c_args : [
- c_vis_args, gl_lib_cargs,
- '-DGL_LIB_NAME="lib@0@.so.@1@"'.format(gl_lib_name, gl_lib_version.split('.')[0]),
+ c_vis_args, gl_lib_cargs, gl_lib_define,
],
link_with : [
- libloader, libloader_dri3_helper, libmesa_util, libxmlconfig,
+ libloader, libloader_dri3_helper,
extra_libs_libglx,
],
- dependencies : [dep_libdrm, dep_dri2proto, dep_glproto, dep_x11, dep_glvnd],
+ dependencies : [
+ idep_mesautil, idep_xmlconfig,
+ dep_libdrm, dep_dri2proto, dep_glproto, dep_x11, dep_glvnd,
+ ],
)
libgl = shared_library(
diff --git a/lib/mesa/src/glx/tests/Makefile.am b/lib/mesa/src/glx/tests/Makefile.am
deleted file mode 100644
index 07173164f..000000000
--- a/lib/mesa/src/glx/tests/Makefile.am
+++ /dev/null
@@ -1,40 +0,0 @@
-if HAVE_SHARED_GLAPI
-AM_CFLAGS = $(PTHREAD_CFLAGS)
-AM_CPPFLAGS = \
- -I$(top_srcdir)/src/gtest/include \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/src/mapi \
- -I$(top_srcdir)/src/mesa \
- -I$(top_builddir)/src/glx \
- -I$(top_srcdir)/src/glx \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/include/GL/internal \
- $(DEFINES) \
- $(LIBDRM_CFLAGS) \
- $(X11_INCLUDES)
-
-TESTS = glx-test dispatch-index-check
-check_PROGRAMS = glx-test
-EXTRA_DIST = dispatch-index-check meson.build
-
-glx_test_SOURCES = \
- clientinfo_unittest.cpp \
- create_context_unittest.cpp \
- enum_sizes.cpp \
- fake_glx_screen.cpp \
- fake_glx_screen.h \
- indirect_api.cpp \
- mock_xdisplay.h \
- query_renderer_unittest.cpp
-
-if HAVE_DRI2
-glx_test_SOURCES += \
- query_renderer_implementation_unittest.cpp
-endif
-
-glx_test_LDADD = \
- $(top_builddir)/src/glx/libglx.la \
- $(top_builddir)/src/gtest/libgtest.la \
- $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
- $(PTHREAD_LIBS)
-endif
diff --git a/lib/mesa/src/glx/tests/Makefile.in b/lib/mesa/src/glx/tests/Makefile.in
deleted file mode 100644
index 99dfeddd9..000000000
--- a/lib/mesa/src/glx/tests/Makefile.in
+++ /dev/null
@@ -1,924 +0,0 @@
-# Makefile.in generated by automake 1.12.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2012 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__make_dryrun = \
- { \
- am__dry=no; \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
- | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
- *) \
- for am__flg in $$MAKEFLAGS; do \
- case $$am__flg in \
- *=*|--*) ;; \
- *n*) am__dry=yes; break;; \
- esac; \
- done;; \
- esac; \
- test $$am__dry = yes; \
- }
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-@HAVE_SHARED_GLAPI_TRUE@TESTS = glx-test$(EXEEXT) dispatch-index-check
-@HAVE_SHARED_GLAPI_TRUE@check_PROGRAMS = glx-test$(EXEEXT)
-@HAVE_DRI2_TRUE@@HAVE_SHARED_GLAPI_TRUE@am__append_1 = \
-@HAVE_DRI2_TRUE@@HAVE_SHARED_GLAPI_TRUE@ query_renderer_implementation_unittest.cpp
-
-subdir = src/glx/tests
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
- $(top_srcdir)/bin/depcomp
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
- $(top_srcdir)/m4/ax_check_gnu_make.m4 \
- $(top_srcdir)/m4/ax_check_python_mako_module.m4 \
- $(top_srcdir)/m4/ax_gcc_builtin.m4 \
- $(top_srcdir)/m4/ax_gcc_func_attribute.m4 \
- $(top_srcdir)/m4/ax_prog_bison.m4 \
- $(top_srcdir)/m4/ax_prog_flex.m4 \
- $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
- $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
- $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
- $(top_srcdir)/VERSION $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__glx_test_SOURCES_DIST = clientinfo_unittest.cpp \
- create_context_unittest.cpp enum_sizes.cpp fake_glx_screen.cpp \
- fake_glx_screen.h indirect_api.cpp mock_xdisplay.h \
- query_renderer_unittest.cpp \
- query_renderer_implementation_unittest.cpp
-@HAVE_DRI2_TRUE@@HAVE_SHARED_GLAPI_TRUE@am__objects_1 = query_renderer_implementation_unittest.$(OBJEXT)
-@HAVE_SHARED_GLAPI_TRUE@am_glx_test_OBJECTS = \
-@HAVE_SHARED_GLAPI_TRUE@ clientinfo_unittest.$(OBJEXT) \
-@HAVE_SHARED_GLAPI_TRUE@ create_context_unittest.$(OBJEXT) \
-@HAVE_SHARED_GLAPI_TRUE@ enum_sizes.$(OBJEXT) \
-@HAVE_SHARED_GLAPI_TRUE@ fake_glx_screen.$(OBJEXT) \
-@HAVE_SHARED_GLAPI_TRUE@ indirect_api.$(OBJEXT) \
-@HAVE_SHARED_GLAPI_TRUE@ query_renderer_unittest.$(OBJEXT) \
-@HAVE_SHARED_GLAPI_TRUE@ $(am__objects_1)
-glx_test_OBJECTS = $(am_glx_test_OBJECTS)
-am__DEPENDENCIES_1 =
-@HAVE_SHARED_GLAPI_TRUE@glx_test_DEPENDENCIES = \
-@HAVE_SHARED_GLAPI_TRUE@ $(top_builddir)/src/glx/libglx.la \
-@HAVE_SHARED_GLAPI_TRUE@ $(top_builddir)/src/gtest/libgtest.la \
-@HAVE_SHARED_GLAPI_TRUE@ $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
-@HAVE_SHARED_GLAPI_TRUE@ $(am__DEPENDENCIES_1)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@
-depcomp = $(SHELL) $(top_srcdir)/bin/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
-LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CXXFLAGS) $(CXXFLAGS)
-AM_V_CXX = $(am__v_CXX_@AM_V@)
-am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
-am__v_CXX_0 = @echo " CXX " $@;
-am__v_CXX_1 =
-CXXLD = $(CXX)
-CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
- $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
-am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
-am__v_CXXLD_0 = @echo " CXXLD " $@;
-am__v_CXXLD_1 =
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(glx_test_SOURCES)
-DIST_SOURCES = $(am__glx_test_SOURCES_DIST)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = $(am__tty_colors_dummy)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMDGPU_CFLAGS = @AMDGPU_CFLAGS@
-AMDGPU_LIBS = @AMDGPU_LIBS@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-ANDROID_CFLAGS = @ANDROID_CFLAGS@
-ANDROID_LIBS = @ANDROID_LIBS@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BACKTRACE_CFLAGS = @BACKTRACE_CFLAGS@
-BACKTRACE_LIBS = @BACKTRACE_LIBS@
-BSYMBOLIC = @BSYMBOLIC@
-CC = @CC@
-CCAS = @CCAS@
-CCASDEPMODE = @CCASDEPMODE@
-CCASFLAGS = @CCASFLAGS@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CLANG_RESOURCE_DIR = @CLANG_RESOURCE_DIR@
-CLOCK_LIB = @CLOCK_LIB@
-CLOVER_STD_OVERRIDE = @CLOVER_STD_OVERRIDE@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXX11_CXXFLAGS = @CXX11_CXXFLAGS@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-D3D_DRIVER_INSTALL_DIR = @D3D_DRIVER_INSTALL_DIR@
-DEFINES = @DEFINES@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DLOPEN_LIBS = @DLOPEN_LIBS@
-DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
-DRI2PROTO_LIBS = @DRI2PROTO_LIBS@
-DRIGL_CFLAGS = @DRIGL_CFLAGS@
-DRIGL_LIBS = @DRIGL_LIBS@
-DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
-DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@
-DRI_LIB_DEPS = @DRI_LIB_DEPS@
-DRI_PC_REQ_PRIV = @DRI_PC_REQ_PRIV@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGL_CFLAGS = @EGL_CFLAGS@
-EGL_LIB_DEPS = @EGL_LIB_DEPS@
-EGL_NATIVE_PLATFORM = @EGL_NATIVE_PLATFORM@
-EGREP = @EGREP@
-ETNAVIV_CFLAGS = @ETNAVIV_CFLAGS@
-ETNAVIV_LIBS = @ETNAVIV_LIBS@
-EXEEXT = @EXEEXT@
-EXPAT_CFLAGS = @EXPAT_CFLAGS@
-EXPAT_LIBS = @EXPAT_LIBS@
-FGREP = @FGREP@
-GALLIUM_PIPE_LOADER_DEFINES = @GALLIUM_PIPE_LOADER_DEFINES@
-GBM_PC_LIB_PRIV = @GBM_PC_LIB_PRIV@
-GBM_PC_REQ_PRIV = @GBM_PC_REQ_PRIV@
-GC_SECTIONS = @GC_SECTIONS@
-GLESv1_CM_LIB_DEPS = @GLESv1_CM_LIB_DEPS@
-GLESv1_CM_PC_LIB_PRIV = @GLESv1_CM_PC_LIB_PRIV@
-GLESv2_LIB_DEPS = @GLESv2_LIB_DEPS@
-GLESv2_PC_LIB_PRIV = @GLESv2_PC_LIB_PRIV@
-GLPROTO_CFLAGS = @GLPROTO_CFLAGS@
-GLPROTO_LIBS = @GLPROTO_LIBS@
-GLVND_CFLAGS = @GLVND_CFLAGS@
-GLVND_LIBS = @GLVND_LIBS@
-GLX_TLS = @GLX_TLS@
-GL_LIB = @GL_LIB@
-GL_LIB_DEPS = @GL_LIB_DEPS@
-GL_PC_CFLAGS = @GL_PC_CFLAGS@
-GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
-GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
-GL_PKGCONF_LIB = @GL_PKGCONF_LIB@
-GREP = @GREP@
-I915_CFLAGS = @I915_CFLAGS@
-I915_LIBS = @I915_LIBS@
-INDENT = @INDENT@
-INDENT_FLAGS = @INDENT_FLAGS@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LD_BUILD_ID = @LD_BUILD_ID@
-LD_NO_UNDEFINED = @LD_NO_UNDEFINED@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBATOMIC_LIBS = @LIBATOMIC_LIBS@
-LIBCLC_INCLUDEDIR = @LIBCLC_INCLUDEDIR@
-LIBCLC_LIBEXECDIR = @LIBCLC_LIBEXECDIR@
-LIBDRM_CFLAGS = @LIBDRM_CFLAGS@
-LIBDRM_LIBS = @LIBDRM_LIBS@
-LIBELF_CFLAGS = @LIBELF_CFLAGS@
-LIBELF_LIBS = @LIBELF_LIBS@
-LIBGLVND_DATADIR = @LIBGLVND_DATADIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBSENSORS_LIBS = @LIBSENSORS_LIBS@
-LIBTOOL = @LIBTOOL@
-LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@
-LIBUNWIND_LIBS = @LIBUNWIND_LIBS@
-LIB_DIR = @LIB_DIR@
-LIB_EXT = @LIB_EXT@
-LIPO = @LIPO@
-LLVM_CFLAGS = @LLVM_CFLAGS@
-LLVM_CONFIG = @LLVM_CONFIG@
-LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
-LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
-LLVM_LDFLAGS = @LLVM_LDFLAGS@
-LLVM_LIBS = @LLVM_LIBS@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-MSVC2013_COMPAT_CFLAGS = @MSVC2013_COMPAT_CFLAGS@
-MSVC2013_COMPAT_CXXFLAGS = @MSVC2013_COMPAT_CXXFLAGS@
-NINE_MAJOR = @NINE_MAJOR@
-NINE_MINOR = @NINE_MINOR@
-NINE_PATCH = @NINE_PATCH@
-NINE_VERSION = @NINE_VERSION@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NOUVEAU_CFLAGS = @NOUVEAU_CFLAGS@
-NOUVEAU_LIBS = @NOUVEAU_LIBS@
-NVVIEUX_CFLAGS = @NVVIEUX_CFLAGS@
-NVVIEUX_LIBS = @NVVIEUX_LIBS@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OMX_BELLAGIO_CFLAGS = @OMX_BELLAGIO_CFLAGS@
-OMX_BELLAGIO_LIBS = @OMX_BELLAGIO_LIBS@
-OMX_BELLAGIO_LIB_INSTALL_DIR = @OMX_BELLAGIO_LIB_INSTALL_DIR@
-OMX_TIZONIA_CFLAGS = @OMX_TIZONIA_CFLAGS@
-OMX_TIZONIA_LIBS = @OMX_TIZONIA_LIBS@
-OMX_TIZONIA_LIB_INSTALL_DIR = @OMX_TIZONIA_LIB_INSTALL_DIR@
-OPENCL_LIBNAME = @OPENCL_LIBNAME@
-OPENCL_VERSION = @OPENCL_VERSION@
-OSMESA_LIB = @OSMESA_LIB@
-OSMESA_LIB_DEPS = @OSMESA_LIB_DEPS@
-OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
-OSMESA_PC_REQ = @OSMESA_PC_REQ@
-OSMESA_VERSION = @OSMESA_VERSION@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PKG_CONFIG = @PKG_CONFIG@
-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
-POSIX_SHELL = @POSIX_SHELL@
-PTHREADSTUBS_CFLAGS = @PTHREADSTUBS_CFLAGS@
-PTHREADSTUBS_LIBS = @PTHREADSTUBS_LIBS@
-PTHREAD_CC = @PTHREAD_CC@
-PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-PWR8_CFLAGS = @PWR8_CFLAGS@
-PYTHON = @PYTHON@
-PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
-PYTHON_PLATFORM = @PYTHON_PLATFORM@
-PYTHON_PREFIX = @PYTHON_PREFIX@
-PYTHON_VERSION = @PYTHON_VERSION@
-RADEON_CFLAGS = @RADEON_CFLAGS@
-RADEON_LIBS = @RADEON_LIBS@
-RANLIB = @RANLIB@
-RM = @RM@
-SCANNER_ARG = @SCANNER_ARG@
-SED = @SED@
-SELINUX_CFLAGS = @SELINUX_CFLAGS@
-SELINUX_LIBS = @SELINUX_LIBS@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIMPENROSE_CFLAGS = @SIMPENROSE_CFLAGS@
-SIMPENROSE_LIBS = @SIMPENROSE_LIBS@
-SSE41_CFLAGS = @SSE41_CFLAGS@
-STRIP = @STRIP@
-SWR_AVX2_CXXFLAGS = @SWR_AVX2_CXXFLAGS@
-SWR_AVX_CXXFLAGS = @SWR_AVX_CXXFLAGS@
-SWR_KNL_CXXFLAGS = @SWR_KNL_CXXFLAGS@
-SWR_SKX_CXXFLAGS = @SWR_SKX_CXXFLAGS@
-V3D_SIMULATOR_CFLAGS = @V3D_SIMULATOR_CFLAGS@
-V3D_SIMULATOR_LIBS = @V3D_SIMULATOR_LIBS@
-VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
-VALGRIND_LIBS = @VALGRIND_LIBS@
-VA_CFLAGS = @VA_CFLAGS@
-VA_LIBS = @VA_LIBS@
-VA_LIB_INSTALL_DIR = @VA_LIB_INSTALL_DIR@
-VA_MAJOR = @VA_MAJOR@
-VA_MINOR = @VA_MINOR@
-VC4_CFLAGS = @VC4_CFLAGS@
-VC4_LIBS = @VC4_LIBS@
-VDPAU_CFLAGS = @VDPAU_CFLAGS@
-VDPAU_LIBS = @VDPAU_LIBS@
-VDPAU_LIB_INSTALL_DIR = @VDPAU_LIB_INSTALL_DIR@
-VDPAU_MAJOR = @VDPAU_MAJOR@
-VDPAU_MINOR = @VDPAU_MINOR@
-VERSION = @VERSION@
-VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
-VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
-VL_CFLAGS = @VL_CFLAGS@
-VL_LIBS = @VL_LIBS@
-VULKAN_ICD_INSTALL_DIR = @VULKAN_ICD_INSTALL_DIR@
-WAYLAND_CLIENT_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
-WAYLAND_CLIENT_LIBS = @WAYLAND_CLIENT_LIBS@
-WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@
-WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@
-WAYLAND_PROTOCOLS_CFLAGS = @WAYLAND_PROTOCOLS_CFLAGS@
-WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@
-WAYLAND_PROTOCOLS_LIBS = @WAYLAND_PROTOCOLS_LIBS@
-WAYLAND_SCANNER = @WAYLAND_SCANNER@
-WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
-WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
-WAYLAND_SERVER_CFLAGS = @WAYLAND_SERVER_CFLAGS@
-WAYLAND_SERVER_LIBS = @WAYLAND_SERVER_LIBS@
-WNO_OVERRIDE_INIT = @WNO_OVERRIDE_INIT@
-X11_INCLUDES = @X11_INCLUDES@
-XA_MAJOR = @XA_MAJOR@
-XA_MINOR = @XA_MINOR@
-XA_PATCH = @XA_PATCH@
-XA_VERSION = @XA_VERSION@
-XCB_DRI2_CFLAGS = @XCB_DRI2_CFLAGS@
-XCB_DRI2_LIBS = @XCB_DRI2_LIBS@
-XCB_DRI3_CFLAGS = @XCB_DRI3_CFLAGS@
-XCB_DRI3_LIBS = @XCB_DRI3_LIBS@
-XCB_DRI3_MODIFIERS_CFLAGS = @XCB_DRI3_MODIFIERS_CFLAGS@
-XCB_DRI3_MODIFIERS_LIBS = @XCB_DRI3_MODIFIERS_LIBS@
-XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@
-XCB_RANDR_LIBS = @XCB_RANDR_LIBS@
-XLIBGL_CFLAGS = @XLIBGL_CFLAGS@
-XLIBGL_LIBS = @XLIBGL_LIBS@
-XLIB_RANDR_CFLAGS = @XLIB_RANDR_CFLAGS@
-XLIB_RANDR_LIBS = @XLIB_RANDR_LIBS@
-XVMC_CFLAGS = @XVMC_CFLAGS@
-XVMC_LIBS = @XVMC_LIBS@
-XVMC_LIB_INSTALL_DIR = @XVMC_LIB_INSTALL_DIR@
-XVMC_MAJOR = @XVMC_MAJOR@
-XVMC_MINOR = @XVMC_MINOR@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-ZLIB_CFLAGS = @ZLIB_CFLAGS@
-ZLIB_LIBS = @ZLIB_LIBS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-acv_mako_found = @acv_mako_found@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-ax_pthread_config = @ax_pthread_config@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-ifGNUmake = @ifGNUmake@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-pkgpyexecdir = @pkgpyexecdir@
-pkgpythondir = @pkgpythondir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-pyexecdir = @pyexecdir@
-pythondir = @pythondir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-@HAVE_SHARED_GLAPI_TRUE@AM_CFLAGS = $(PTHREAD_CFLAGS)
-@HAVE_SHARED_GLAPI_TRUE@AM_CPPFLAGS = \
-@HAVE_SHARED_GLAPI_TRUE@ -I$(top_srcdir)/src/gtest/include \
-@HAVE_SHARED_GLAPI_TRUE@ -I$(top_srcdir)/src \
-@HAVE_SHARED_GLAPI_TRUE@ -I$(top_srcdir)/src/mapi \
-@HAVE_SHARED_GLAPI_TRUE@ -I$(top_srcdir)/src/mesa \
-@HAVE_SHARED_GLAPI_TRUE@ -I$(top_builddir)/src/glx \
-@HAVE_SHARED_GLAPI_TRUE@ -I$(top_srcdir)/src/glx \
-@HAVE_SHARED_GLAPI_TRUE@ -I$(top_srcdir)/include \
-@HAVE_SHARED_GLAPI_TRUE@ -I$(top_srcdir)/include/GL/internal \
-@HAVE_SHARED_GLAPI_TRUE@ $(DEFINES) \
-@HAVE_SHARED_GLAPI_TRUE@ $(LIBDRM_CFLAGS) \
-@HAVE_SHARED_GLAPI_TRUE@ $(X11_INCLUDES)
-
-@HAVE_SHARED_GLAPI_TRUE@EXTRA_DIST = dispatch-index-check meson.build
-@HAVE_SHARED_GLAPI_TRUE@glx_test_SOURCES = clientinfo_unittest.cpp \
-@HAVE_SHARED_GLAPI_TRUE@ create_context_unittest.cpp \
-@HAVE_SHARED_GLAPI_TRUE@ enum_sizes.cpp fake_glx_screen.cpp \
-@HAVE_SHARED_GLAPI_TRUE@ fake_glx_screen.h indirect_api.cpp \
-@HAVE_SHARED_GLAPI_TRUE@ mock_xdisplay.h \
-@HAVE_SHARED_GLAPI_TRUE@ query_renderer_unittest.cpp \
-@HAVE_SHARED_GLAPI_TRUE@ $(am__append_1)
-@HAVE_SHARED_GLAPI_TRUE@glx_test_LDADD = \
-@HAVE_SHARED_GLAPI_TRUE@ $(top_builddir)/src/glx/libglx.la \
-@HAVE_SHARED_GLAPI_TRUE@ $(top_builddir)/src/gtest/libgtest.la \
-@HAVE_SHARED_GLAPI_TRUE@ $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
-@HAVE_SHARED_GLAPI_TRUE@ $(PTHREAD_LIBS)
-
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .cpp .lo .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/glx/tests/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign src/glx/tests/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
-glx-test$(EXEEXT): $(glx_test_OBJECTS) $(glx_test_DEPENDENCIES) $(EXTRA_glx_test_DEPENDENCIES)
- @rm -f glx-test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(glx_test_OBJECTS) $(glx_test_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clientinfo_unittest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_context_unittest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enum_sizes.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fake_glx_screen.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/indirect_api.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/query_renderer_implementation_unittest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/query_renderer_unittest.Po@am__quote@
-
-.cpp.o:
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
-@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
-
-.cpp.obj:
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
-@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
-@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.cpp.lo:
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
-@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- set x; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: CTAGS
-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-
-cscopelist: $(HEADERS) $(SOURCES) $(LISP)
- list='$(SOURCES) $(HEADERS) $(LISP)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- $(am__tty_colors); \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst $(AM_TESTS_FD_REDIRECT); then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$tst[\ \ ]*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- col=$$red; res=XPASS; \
- ;; \
- *) \
- col=$$grn; res=PASS; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$tst[\ \ ]*) \
- xfail=`expr $$xfail + 1`; \
- col=$$lgn; res=XFAIL; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- col=$$red; res=FAIL; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- col=$$blu; res=SKIP; \
- fi; \
- echo "$${col}$$res$${std}: $$tst"; \
- done; \
- if test "$$all" -eq 1; then \
- tests="test"; \
- All=""; \
- else \
- tests="tests"; \
- All="All "; \
- fi; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="$$All$$all $$tests passed"; \
- else \
- if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
- banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all $$tests failed"; \
- else \
- if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
- banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- if test "$$skip" -eq 1; then \
- skipped="($$skip test was not run)"; \
- else \
- skipped="($$skip tests were not run)"; \
- fi; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- if test "$$failed" -eq 0; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- fi; \
- echo "$${col}$$dashes$${std}"; \
- echo "$${col}$$banner$${std}"; \
- test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
- test -z "$$report" || echo "$${col}$$report$${std}"; \
- echo "$${col}$$dashes$${std}"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: check-am install-am install-strip
-
-.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic clean-libtool cscopelist \
- ctags distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- tags uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/lib/mesa/src/glx/windows/Makefile.am b/lib/mesa/src/glx/windows/Makefile.am
deleted file mode 100644
index 828a930e5..000000000
--- a/lib/mesa/src/glx/windows/Makefile.am
+++ /dev/null
@@ -1,36 +0,0 @@
-noinst_LTLIBRARIES = libwindowsdri.la libwindowsglx.la
-
-# protocol defines for the Windows-DRI server extension
-windowsdriincludedir = $(includedir)/X11/extensions
-windowsdriinclude_HEADERS = windowsdriconst.h windowsdristr.h
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = windowsdriproto.pc
-
-# library for using the Windows-DRI server extension
-libwindowsdri_la_SOURCES = xwindowsdri.c xwindowsdri.h
-
-libwindowsdri_la_CFLAGS = \
- $(X11_INCLUDES)
-
-# native rendering GL for windows
-libwindowsglx_la_SOURCES = \
- windowsgl.c \
- windowsgl.h \
- windowsgl_internal.h \
- windows_drawable.c \
- wgl.c \
- wgl.h
-
-libwindowsglx_la_CFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/src/glx \
- -I$(top_srcdir)/src/mapi \
- -I$(top_builddir)/src/mapi/glapi \
- -I$(top_srcdir)/src/mapi/glapi \
- $(VISIBILITY_CFLAGS) \
- $(DEFINES) \
- $(X11_INCLUDES)
-
-EXTRA_DIST = meson.build
diff --git a/lib/mesa/src/glx/windows/Makefile.in b/lib/mesa/src/glx/windows/Makefile.in
deleted file mode 100644
index 4941cdace..000000000
--- a/lib/mesa/src/glx/windows/Makefile.in
+++ /dev/null
@@ -1,918 +0,0 @@
-# Makefile.in generated by automake 1.12.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2012 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-
-VPATH = @srcdir@
-am__make_dryrun = \
- { \
- am__dry=no; \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
- | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
- *) \
- for am__flg in $$MAKEFLAGS; do \
- case $$am__flg in \
- *=*|--*) ;; \
- *n*) am__dry=yes; break;; \
- esac; \
- done;; \
- esac; \
- test $$am__dry = yes; \
- }
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = src/glx/windows
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
- $(srcdir)/windowsdriproto.pc.in $(top_srcdir)/bin/depcomp \
- $(windowsdriinclude_HEADERS)
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
- $(top_srcdir)/m4/ax_check_gnu_make.m4 \
- $(top_srcdir)/m4/ax_check_python_mako_module.m4 \
- $(top_srcdir)/m4/ax_gcc_builtin.m4 \
- $(top_srcdir)/m4/ax_gcc_func_attribute.m4 \
- $(top_srcdir)/m4/ax_prog_bison.m4 \
- $(top_srcdir)/m4/ax_prog_flex.m4 \
- $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
- $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
- $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
- $(top_srcdir)/VERSION $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_CLEAN_FILES = windowsdriproto.pc
-CONFIG_CLEAN_VPATH_FILES =
-LTLIBRARIES = $(noinst_LTLIBRARIES)
-libwindowsdri_la_LIBADD =
-am_libwindowsdri_la_OBJECTS = libwindowsdri_la-xwindowsdri.lo
-libwindowsdri_la_OBJECTS = $(am_libwindowsdri_la_OBJECTS)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-libwindowsdri_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(libwindowsdri_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
- -o $@
-libwindowsglx_la_LIBADD =
-am_libwindowsglx_la_OBJECTS = libwindowsglx_la-windowsgl.lo \
- libwindowsglx_la-windows_drawable.lo libwindowsglx_la-wgl.lo
-libwindowsglx_la_OBJECTS = $(am_libwindowsglx_la_OBJECTS)
-libwindowsglx_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(libwindowsglx_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
- -o $@
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@
-depcomp = $(SHELL) $(top_srcdir)/bin/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libwindowsdri_la_SOURCES) $(libwindowsglx_la_SOURCES)
-DIST_SOURCES = $(libwindowsdri_la_SOURCES) $(libwindowsglx_la_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(pkgconfigdir)" \
- "$(DESTDIR)$(windowsdriincludedir)"
-DATA = $(pkgconfig_DATA)
-HEADERS = $(windowsdriinclude_HEADERS)
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMDGPU_CFLAGS = @AMDGPU_CFLAGS@
-AMDGPU_LIBS = @AMDGPU_LIBS@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-ANDROID_CFLAGS = @ANDROID_CFLAGS@
-ANDROID_LIBS = @ANDROID_LIBS@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BACKTRACE_CFLAGS = @BACKTRACE_CFLAGS@
-BACKTRACE_LIBS = @BACKTRACE_LIBS@
-BSYMBOLIC = @BSYMBOLIC@
-CC = @CC@
-CCAS = @CCAS@
-CCASDEPMODE = @CCASDEPMODE@
-CCASFLAGS = @CCASFLAGS@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CLANG_RESOURCE_DIR = @CLANG_RESOURCE_DIR@
-CLOCK_LIB = @CLOCK_LIB@
-CLOVER_STD_OVERRIDE = @CLOVER_STD_OVERRIDE@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXX11_CXXFLAGS = @CXX11_CXXFLAGS@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-D3D_DRIVER_INSTALL_DIR = @D3D_DRIVER_INSTALL_DIR@
-DEFINES = @DEFINES@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DLLTOOL = @DLLTOOL@
-DLOPEN_LIBS = @DLOPEN_LIBS@
-DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
-DRI2PROTO_LIBS = @DRI2PROTO_LIBS@
-DRIGL_CFLAGS = @DRIGL_CFLAGS@
-DRIGL_LIBS = @DRIGL_LIBS@
-DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
-DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@
-DRI_LIB_DEPS = @DRI_LIB_DEPS@
-DRI_PC_REQ_PRIV = @DRI_PC_REQ_PRIV@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGL_CFLAGS = @EGL_CFLAGS@
-EGL_LIB_DEPS = @EGL_LIB_DEPS@
-EGL_NATIVE_PLATFORM = @EGL_NATIVE_PLATFORM@
-EGREP = @EGREP@
-ETNAVIV_CFLAGS = @ETNAVIV_CFLAGS@
-ETNAVIV_LIBS = @ETNAVIV_LIBS@
-EXEEXT = @EXEEXT@
-EXPAT_CFLAGS = @EXPAT_CFLAGS@
-EXPAT_LIBS = @EXPAT_LIBS@
-FGREP = @FGREP@
-GALLIUM_PIPE_LOADER_DEFINES = @GALLIUM_PIPE_LOADER_DEFINES@
-GBM_PC_LIB_PRIV = @GBM_PC_LIB_PRIV@
-GBM_PC_REQ_PRIV = @GBM_PC_REQ_PRIV@
-GC_SECTIONS = @GC_SECTIONS@
-GLESv1_CM_LIB_DEPS = @GLESv1_CM_LIB_DEPS@
-GLESv1_CM_PC_LIB_PRIV = @GLESv1_CM_PC_LIB_PRIV@
-GLESv2_LIB_DEPS = @GLESv2_LIB_DEPS@
-GLESv2_PC_LIB_PRIV = @GLESv2_PC_LIB_PRIV@
-GLPROTO_CFLAGS = @GLPROTO_CFLAGS@
-GLPROTO_LIBS = @GLPROTO_LIBS@
-GLVND_CFLAGS = @GLVND_CFLAGS@
-GLVND_LIBS = @GLVND_LIBS@
-GLX_TLS = @GLX_TLS@
-GL_LIB = @GL_LIB@
-GL_LIB_DEPS = @GL_LIB_DEPS@
-GL_PC_CFLAGS = @GL_PC_CFLAGS@
-GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
-GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
-GL_PKGCONF_LIB = @GL_PKGCONF_LIB@
-GREP = @GREP@
-I915_CFLAGS = @I915_CFLAGS@
-I915_LIBS = @I915_LIBS@
-INDENT = @INDENT@
-INDENT_FLAGS = @INDENT_FLAGS@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LD_BUILD_ID = @LD_BUILD_ID@
-LD_NO_UNDEFINED = @LD_NO_UNDEFINED@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBATOMIC_LIBS = @LIBATOMIC_LIBS@
-LIBCLC_INCLUDEDIR = @LIBCLC_INCLUDEDIR@
-LIBCLC_LIBEXECDIR = @LIBCLC_LIBEXECDIR@
-LIBDRM_CFLAGS = @LIBDRM_CFLAGS@
-LIBDRM_LIBS = @LIBDRM_LIBS@
-LIBELF_CFLAGS = @LIBELF_CFLAGS@
-LIBELF_LIBS = @LIBELF_LIBS@
-LIBGLVND_DATADIR = @LIBGLVND_DATADIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBSENSORS_LIBS = @LIBSENSORS_LIBS@
-LIBTOOL = @LIBTOOL@
-LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@
-LIBUNWIND_LIBS = @LIBUNWIND_LIBS@
-LIB_DIR = @LIB_DIR@
-LIB_EXT = @LIB_EXT@
-LIPO = @LIPO@
-LLVM_CFLAGS = @LLVM_CFLAGS@
-LLVM_CONFIG = @LLVM_CONFIG@
-LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
-LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
-LLVM_LDFLAGS = @LLVM_LDFLAGS@
-LLVM_LIBS = @LLVM_LIBS@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-MSVC2013_COMPAT_CFLAGS = @MSVC2013_COMPAT_CFLAGS@
-MSVC2013_COMPAT_CXXFLAGS = @MSVC2013_COMPAT_CXXFLAGS@
-NINE_MAJOR = @NINE_MAJOR@
-NINE_MINOR = @NINE_MINOR@
-NINE_PATCH = @NINE_PATCH@
-NINE_VERSION = @NINE_VERSION@
-NM = @NM@
-NMEDIT = @NMEDIT@
-NOUVEAU_CFLAGS = @NOUVEAU_CFLAGS@
-NOUVEAU_LIBS = @NOUVEAU_LIBS@
-NVVIEUX_CFLAGS = @NVVIEUX_CFLAGS@
-NVVIEUX_LIBS = @NVVIEUX_LIBS@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OMX_BELLAGIO_CFLAGS = @OMX_BELLAGIO_CFLAGS@
-OMX_BELLAGIO_LIBS = @OMX_BELLAGIO_LIBS@
-OMX_BELLAGIO_LIB_INSTALL_DIR = @OMX_BELLAGIO_LIB_INSTALL_DIR@
-OMX_TIZONIA_CFLAGS = @OMX_TIZONIA_CFLAGS@
-OMX_TIZONIA_LIBS = @OMX_TIZONIA_LIBS@
-OMX_TIZONIA_LIB_INSTALL_DIR = @OMX_TIZONIA_LIB_INSTALL_DIR@
-OPENCL_LIBNAME = @OPENCL_LIBNAME@
-OPENCL_VERSION = @OPENCL_VERSION@
-OSMESA_LIB = @OSMESA_LIB@
-OSMESA_LIB_DEPS = @OSMESA_LIB_DEPS@
-OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
-OSMESA_PC_REQ = @OSMESA_PC_REQ@
-OSMESA_VERSION = @OSMESA_VERSION@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PKG_CONFIG = @PKG_CONFIG@
-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
-POSIX_SHELL = @POSIX_SHELL@
-PTHREADSTUBS_CFLAGS = @PTHREADSTUBS_CFLAGS@
-PTHREADSTUBS_LIBS = @PTHREADSTUBS_LIBS@
-PTHREAD_CC = @PTHREAD_CC@
-PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-PWR8_CFLAGS = @PWR8_CFLAGS@
-PYTHON = @PYTHON@
-PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
-PYTHON_PLATFORM = @PYTHON_PLATFORM@
-PYTHON_PREFIX = @PYTHON_PREFIX@
-PYTHON_VERSION = @PYTHON_VERSION@
-RADEON_CFLAGS = @RADEON_CFLAGS@
-RADEON_LIBS = @RADEON_LIBS@
-RANLIB = @RANLIB@
-RM = @RM@
-SCANNER_ARG = @SCANNER_ARG@
-SED = @SED@
-SELINUX_CFLAGS = @SELINUX_CFLAGS@
-SELINUX_LIBS = @SELINUX_LIBS@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIMPENROSE_CFLAGS = @SIMPENROSE_CFLAGS@
-SIMPENROSE_LIBS = @SIMPENROSE_LIBS@
-SSE41_CFLAGS = @SSE41_CFLAGS@
-STRIP = @STRIP@
-SWR_AVX2_CXXFLAGS = @SWR_AVX2_CXXFLAGS@
-SWR_AVX_CXXFLAGS = @SWR_AVX_CXXFLAGS@
-SWR_KNL_CXXFLAGS = @SWR_KNL_CXXFLAGS@
-SWR_SKX_CXXFLAGS = @SWR_SKX_CXXFLAGS@
-V3D_SIMULATOR_CFLAGS = @V3D_SIMULATOR_CFLAGS@
-V3D_SIMULATOR_LIBS = @V3D_SIMULATOR_LIBS@
-VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
-VALGRIND_LIBS = @VALGRIND_LIBS@
-VA_CFLAGS = @VA_CFLAGS@
-VA_LIBS = @VA_LIBS@
-VA_LIB_INSTALL_DIR = @VA_LIB_INSTALL_DIR@
-VA_MAJOR = @VA_MAJOR@
-VA_MINOR = @VA_MINOR@
-VC4_CFLAGS = @VC4_CFLAGS@
-VC4_LIBS = @VC4_LIBS@
-VDPAU_CFLAGS = @VDPAU_CFLAGS@
-VDPAU_LIBS = @VDPAU_LIBS@
-VDPAU_LIB_INSTALL_DIR = @VDPAU_LIB_INSTALL_DIR@
-VDPAU_MAJOR = @VDPAU_MAJOR@
-VDPAU_MINOR = @VDPAU_MINOR@
-VERSION = @VERSION@
-VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
-VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
-VL_CFLAGS = @VL_CFLAGS@
-VL_LIBS = @VL_LIBS@
-VULKAN_ICD_INSTALL_DIR = @VULKAN_ICD_INSTALL_DIR@
-WAYLAND_CLIENT_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
-WAYLAND_CLIENT_LIBS = @WAYLAND_CLIENT_LIBS@
-WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@
-WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@
-WAYLAND_PROTOCOLS_CFLAGS = @WAYLAND_PROTOCOLS_CFLAGS@
-WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@
-WAYLAND_PROTOCOLS_LIBS = @WAYLAND_PROTOCOLS_LIBS@
-WAYLAND_SCANNER = @WAYLAND_SCANNER@
-WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
-WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
-WAYLAND_SERVER_CFLAGS = @WAYLAND_SERVER_CFLAGS@
-WAYLAND_SERVER_LIBS = @WAYLAND_SERVER_LIBS@
-WNO_OVERRIDE_INIT = @WNO_OVERRIDE_INIT@
-X11_INCLUDES = @X11_INCLUDES@
-XA_MAJOR = @XA_MAJOR@
-XA_MINOR = @XA_MINOR@
-XA_PATCH = @XA_PATCH@
-XA_VERSION = @XA_VERSION@
-XCB_DRI2_CFLAGS = @XCB_DRI2_CFLAGS@
-XCB_DRI2_LIBS = @XCB_DRI2_LIBS@
-XCB_DRI3_CFLAGS = @XCB_DRI3_CFLAGS@
-XCB_DRI3_LIBS = @XCB_DRI3_LIBS@
-XCB_DRI3_MODIFIERS_CFLAGS = @XCB_DRI3_MODIFIERS_CFLAGS@
-XCB_DRI3_MODIFIERS_LIBS = @XCB_DRI3_MODIFIERS_LIBS@
-XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@
-XCB_RANDR_LIBS = @XCB_RANDR_LIBS@
-XLIBGL_CFLAGS = @XLIBGL_CFLAGS@
-XLIBGL_LIBS = @XLIBGL_LIBS@
-XLIB_RANDR_CFLAGS = @XLIB_RANDR_CFLAGS@
-XLIB_RANDR_LIBS = @XLIB_RANDR_LIBS@
-XVMC_CFLAGS = @XVMC_CFLAGS@
-XVMC_LIBS = @XVMC_LIBS@
-XVMC_LIB_INSTALL_DIR = @XVMC_LIB_INSTALL_DIR@
-XVMC_MAJOR = @XVMC_MAJOR@
-XVMC_MINOR = @XVMC_MINOR@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-ZLIB_CFLAGS = @ZLIB_CFLAGS@
-ZLIB_LIBS = @ZLIB_LIBS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-acv_mako_found = @acv_mako_found@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-ax_pthread_config = @ax_pthread_config@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-ifGNUmake = @ifGNUmake@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-pkgpyexecdir = @pkgpyexecdir@
-pkgpythondir = @pkgpythondir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-pyexecdir = @pyexecdir@
-pythondir = @pythondir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-noinst_LTLIBRARIES = libwindowsdri.la libwindowsglx.la
-
-# protocol defines for the Windows-DRI server extension
-windowsdriincludedir = $(includedir)/X11/extensions
-windowsdriinclude_HEADERS = windowsdriconst.h windowsdristr.h
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = windowsdriproto.pc
-
-# library for using the Windows-DRI server extension
-libwindowsdri_la_SOURCES = xwindowsdri.c xwindowsdri.h
-libwindowsdri_la_CFLAGS = \
- $(X11_INCLUDES)
-
-
-# native rendering GL for windows
-libwindowsglx_la_SOURCES = \
- windowsgl.c \
- windowsgl.h \
- windowsgl_internal.h \
- windows_drawable.c \
- wgl.c \
- wgl.h
-
-libwindowsglx_la_CFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/src/glx \
- -I$(top_srcdir)/src/mapi \
- -I$(top_builddir)/src/mapi/glapi \
- -I$(top_srcdir)/src/mapi/glapi \
- $(VISIBILITY_CFLAGS) \
- $(DEFINES) \
- $(X11_INCLUDES)
-
-EXTRA_DIST = meson.build
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/glx/windows/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign src/glx/windows/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-windowsdriproto.pc: $(top_builddir)/config.status $(srcdir)/windowsdriproto.pc.in
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
-
-clean-noinstLTLIBRARIES:
- -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
- @list='$(noinst_LTLIBRARIES)'; \
- locs=`for p in $$list; do echo $$p; done | \
- sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
- sort -u`; \
- test -z "$$locs" || { \
- echo rm -f $${locs}; \
- rm -f $${locs}; \
- }
-libwindowsdri.la: $(libwindowsdri_la_OBJECTS) $(libwindowsdri_la_DEPENDENCIES) $(EXTRA_libwindowsdri_la_DEPENDENCIES)
- $(AM_V_CCLD)$(libwindowsdri_la_LINK) $(libwindowsdri_la_OBJECTS) $(libwindowsdri_la_LIBADD) $(LIBS)
-libwindowsglx.la: $(libwindowsglx_la_OBJECTS) $(libwindowsglx_la_DEPENDENCIES) $(EXTRA_libwindowsglx_la_DEPENDENCIES)
- $(AM_V_CCLD)$(libwindowsglx_la_LINK) $(libwindowsglx_la_OBJECTS) $(libwindowsglx_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwindowsdri_la-xwindowsdri.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwindowsglx_la-wgl.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwindowsglx_la-windows_drawable.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwindowsglx_la-windowsgl.Plo@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
-@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-libwindowsdri_la-xwindowsdri.lo: xwindowsdri.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwindowsdri_la_CFLAGS) $(CFLAGS) -MT libwindowsdri_la-xwindowsdri.lo -MD -MP -MF $(DEPDIR)/libwindowsdri_la-xwindowsdri.Tpo -c -o libwindowsdri_la-xwindowsdri.lo `test -f 'xwindowsdri.c' || echo '$(srcdir)/'`xwindowsdri.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libwindowsdri_la-xwindowsdri.Tpo $(DEPDIR)/libwindowsdri_la-xwindowsdri.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xwindowsdri.c' object='libwindowsdri_la-xwindowsdri.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwindowsdri_la_CFLAGS) $(CFLAGS) -c -o libwindowsdri_la-xwindowsdri.lo `test -f 'xwindowsdri.c' || echo '$(srcdir)/'`xwindowsdri.c
-
-libwindowsglx_la-windowsgl.lo: windowsgl.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwindowsglx_la_CFLAGS) $(CFLAGS) -MT libwindowsglx_la-windowsgl.lo -MD -MP -MF $(DEPDIR)/libwindowsglx_la-windowsgl.Tpo -c -o libwindowsglx_la-windowsgl.lo `test -f 'windowsgl.c' || echo '$(srcdir)/'`windowsgl.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libwindowsglx_la-windowsgl.Tpo $(DEPDIR)/libwindowsglx_la-windowsgl.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='windowsgl.c' object='libwindowsglx_la-windowsgl.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwindowsglx_la_CFLAGS) $(CFLAGS) -c -o libwindowsglx_la-windowsgl.lo `test -f 'windowsgl.c' || echo '$(srcdir)/'`windowsgl.c
-
-libwindowsglx_la-windows_drawable.lo: windows_drawable.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwindowsglx_la_CFLAGS) $(CFLAGS) -MT libwindowsglx_la-windows_drawable.lo -MD -MP -MF $(DEPDIR)/libwindowsglx_la-windows_drawable.Tpo -c -o libwindowsglx_la-windows_drawable.lo `test -f 'windows_drawable.c' || echo '$(srcdir)/'`windows_drawable.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libwindowsglx_la-windows_drawable.Tpo $(DEPDIR)/libwindowsglx_la-windows_drawable.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='windows_drawable.c' object='libwindowsglx_la-windows_drawable.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwindowsglx_la_CFLAGS) $(CFLAGS) -c -o libwindowsglx_la-windows_drawable.lo `test -f 'windows_drawable.c' || echo '$(srcdir)/'`windows_drawable.c
-
-libwindowsglx_la-wgl.lo: wgl.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwindowsglx_la_CFLAGS) $(CFLAGS) -MT libwindowsglx_la-wgl.lo -MD -MP -MF $(DEPDIR)/libwindowsglx_la-wgl.Tpo -c -o libwindowsglx_la-wgl.lo `test -f 'wgl.c' || echo '$(srcdir)/'`wgl.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libwindowsglx_la-wgl.Tpo $(DEPDIR)/libwindowsglx_la-wgl.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='wgl.c' object='libwindowsglx_la-wgl.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwindowsglx_la_CFLAGS) $(CFLAGS) -c -o libwindowsglx_la-wgl.lo `test -f 'wgl.c' || echo '$(srcdir)/'`wgl.c
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-install-pkgconfigDATA: $(pkgconfig_DATA)
- @$(NORMAL_INSTALL)
- @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
- done
-
-uninstall-pkgconfigDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
-install-windowsdriincludeHEADERS: $(windowsdriinclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(windowsdriinclude_HEADERS)'; test -n "$(windowsdriincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(windowsdriincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(windowsdriincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(windowsdriincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(windowsdriincludedir)" || exit $$?; \
- done
-
-uninstall-windowsdriincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(windowsdriinclude_HEADERS)'; test -n "$(windowsdriincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(windowsdriincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- set x; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: CTAGS
-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-
-cscopelist: $(HEADERS) $(SOURCES) $(LISP)
- list='$(SOURCES) $(HEADERS) $(LISP)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(windowsdriincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-pkgconfigDATA \
- install-windowsdriincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-pkgconfigDATA \
- uninstall-windowsdriincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
- clean-libtool clean-noinstLTLIBRARIES cscopelist ctags \
- distclean distclean-compile distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-pkgconfigDATA install-ps install-ps-am install-strip \
- install-windowsdriincludeHEADERS installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
- uninstall-am uninstall-pkgconfigDATA \
- uninstall-windowsdriincludeHEADERS
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/lib/mesa/src/glx/windows/windowsdriproto.pc.in b/lib/mesa/src/glx/windows/windowsdriproto.pc.in
deleted file mode 100644
index 224923d1f..000000000
--- a/lib/mesa/src/glx/windows/windowsdriproto.pc.in
+++ /dev/null
@@ -1,9 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: windowsdriproto
-Description: Windows-DRI extension headers
-Version: 1.0.0
-Cflags: -I${includedir}