summaryrefslogtreecommitdiff
path: root/lib/mesa/src/glx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/glx')
-rw-r--r--lib/mesa/src/glx/Makefile.am7
-rw-r--r--lib/mesa/src/glx/Makefile.in86
-rw-r--r--lib/mesa/src/glx/SConscript5
-rw-r--r--lib/mesa/src/glx/apple/Makefile.am4
-rw-r--r--lib/mesa/src/glx/apple/Makefile.in41
-rw-r--r--lib/mesa/src/glx/apple/glx_empty.c16
-rw-r--r--lib/mesa/src/glx/dri2.c6
-rw-r--r--lib/mesa/src/glx/dri2_glx.c39
-rw-r--r--lib/mesa/src/glx/dri3_glx.c50
-rw-r--r--lib/mesa/src/glx/dri3_priv.h104
-rw-r--r--lib/mesa/src/glx/dri_common.c5
-rw-r--r--lib/mesa/src/glx/dri_glx.c4
-rw-r--r--lib/mesa/src/glx/drisw_glx.c7
-rw-r--r--lib/mesa/src/glx/g_glxglvnddispatchfuncs.c14
-rw-r--r--lib/mesa/src/glx/g_glxglvnddispatchindices.h1
-rw-r--r--lib/mesa/src/glx/glx_pbuffer.c4
-rw-r--r--lib/mesa/src/glx/glxclient.h2
-rw-r--r--lib/mesa/src/glx/glxcmds.c22
-rw-r--r--lib/mesa/src/glx/glxconfig.c1
-rw-r--r--lib/mesa/src/glx/glxextensions.h9
-rw-r--r--lib/mesa/src/glx/glxglvnd.c34
-rw-r--r--lib/mesa/src/glx/indirect.c11412
-rw-r--r--lib/mesa/src/glx/indirect.h2
-rw-r--r--lib/mesa/src/glx/indirect_size.c493
-rw-r--r--lib/mesa/src/glx/indirect_size.h6
-rw-r--r--lib/mesa/src/glx/tests/Makefile.am3
-rw-r--r--lib/mesa/src/glx/tests/Makefile.in43
-rwxr-xr-xlib/mesa/src/glx/tests/dispatch-index-check30
-rw-r--r--lib/mesa/src/glx/windows/Makefile.am2
-rw-r--r--lib/mesa/src/glx/windows/Makefile.in41
30 files changed, 7297 insertions, 5196 deletions
diff --git a/lib/mesa/src/glx/Makefile.am b/lib/mesa/src/glx/Makefile.am
index c3d27a67a..df0acdc30 100644
--- a/lib/mesa/src/glx/Makefile.am
+++ b/lib/mesa/src/glx/Makefile.am
@@ -20,6 +20,7 @@
# IN THE SOFTWARE.
if HAVE_SHARED_GLAPI
+SHARED_GLAPI_CFLAGS = -DGLX_SHARED_GLAPI
SHARED_GLAPI_LIB = $(top_builddir)/src/mapi/shared-glapi/libglapi.la
endif
@@ -41,6 +42,7 @@ AM_CFLAGS = \
-I$(top_builddir)/src/mapi/glapi \
-I$(top_srcdir)/src/mapi/glapi \
$(VISIBILITY_CFLAGS) \
+ $(SHARED_GLAPI_CFLAGS) \
$(EXTRA_DEFINES_XF86VIDMODE) \
-D_REENTRANT \
-DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \
@@ -153,7 +155,7 @@ libglx_la_LIBADD += \
$(builddir)/windows/libwindowsglx.la
endif
-if USE_LIBGLVND
+if USE_LIBGLVND_GLX
AM_CFLAGS += \
-DGL_LIB_NAME=\"lib@GL_LIB@.so\" \
$(GLVND_CFLAGS)
@@ -172,10 +174,7 @@ AM_CFLAGS += \
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 \
$(SHARED_GLAPI_LIB) \
diff --git a/lib/mesa/src/glx/Makefile.in b/lib/mesa/src/glx/Makefile.in
index 891abc9d7..5573174d8 100644
--- a/lib/mesa/src/glx/Makefile.in
+++ b/lib/mesa/src/glx/Makefile.in
@@ -115,19 +115,19 @@ target_triplet = @target@
@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_GLX_TRUE@am__append_12 = \
+@USE_LIBGLVND_GLX_TRUE@ -DGL_LIB_NAME=\"lib@GL_LIB@.so\" \
+@USE_LIBGLVND_GLX_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_GLX_TRUE@am__append_13 = \
+@USE_LIBGLVND_GLX_TRUE@ g_glxglvnddispatchfuncs.c \
+@USE_LIBGLVND_GLX_TRUE@ g_glxglvnddispatchindices.h \
+@USE_LIBGLVND_GLX_TRUE@ glxglvnd.c \
+@USE_LIBGLVND_GLX_TRUE@ glxglvnd.h \
+@USE_LIBGLVND_GLX_TRUE@ glxglvnddispatchfuncs.h
-@USE_LIBGLVND_FALSE@am__append_14 = \
-@USE_LIBGLVND_FALSE@ -DGL_LIB_NAME=\"lib@GL_LIB@.so.1\"
+@USE_LIBGLVND_GLX_FALSE@am__append_14 = \
+@USE_LIBGLVND_GLX_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 \
@@ -179,7 +179,7 @@ am__uninstall_files_from_dir = { \
am__installdirs = "$(DESTDIR)$(libdir)"
LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
am__DEPENDENCIES_1 =
-am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) libglx.la \
+am__DEPENDENCIES_2 = libglx.la \
$(top_builddir)/src/mapi/glapi/libglapi.la $(SHARED_GLAPI_LIB) \
$(am__DEPENDENCIES_1)
lib@GL_LIB@_la_DEPENDENCIES = $(am__DEPENDENCIES_2)
@@ -222,8 +222,8 @@ am__libglx_la_SOURCES_DIST = clientattrib.c clientinfo.c compsize.c \
@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
+@USE_LIBGLVND_GLX_TRUE@am__objects_7 = g_glxglvnddispatchfuncs.lo \
+@USE_LIBGLVND_GLX_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 \
@@ -324,8 +324,6 @@ 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@
@@ -356,6 +354,8 @@ DLLTOOL = @DLLTOOL@
DLOPEN_LIBS = @DLOPEN_LIBS@
DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
DRI2PROTO_LIBS = @DRI2PROTO_LIBS@
+DRI3PROTO_CFLAGS = @DRI3PROTO_CFLAGS@
+DRI3PROTO_LIBS = @DRI3PROTO_LIBS@
DRIGL_CFLAGS = @DRIGL_CFLAGS@
DRIGL_LIBS = @DRIGL_LIBS@
DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
@@ -368,11 +368,10 @@ ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGL_CFLAGS = @EGL_CFLAGS@
+EGL_CLIENT_APIS = @EGL_CLIENT_APIS@
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@
@@ -399,8 +398,6 @@ GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
GREP = @GREP@
HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@
-I915_CFLAGS = @I915_CFLAGS@
-I915_LIBS = @I915_LIBS@
INDENT = @INDENT@
INDENT_FLAGS = @INDENT_FLAGS@
INSTALL = @INSTALL@
@@ -408,40 +405,45 @@ INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTEL_CFLAGS = @INTEL_CFLAGS@
+INTEL_LIBS = @INTEL_LIBS@
LD = @LD@
LDFLAGS = @LDFLAGS@
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@
+LIBSENSORS_LDFLAGS = @LIBSENSORS_LDFLAGS@
+LIBSHA1_CFLAGS = @LIBSHA1_CFLAGS@
+LIBSHA1_LIBS = @LIBSHA1_LIBS@
LIBTOOL = @LIBTOOL@
-LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@
-LIBUNWIND_LIBS = @LIBUNWIND_LIBS@
LIB_DIR = @LIB_DIR@
LIB_EXT = @LIB_EXT@
LIPO = @LIPO@
+LLVM_BINDIR = @LLVM_BINDIR@
LLVM_CFLAGS = @LLVM_CFLAGS@
LLVM_CONFIG = @LLVM_CONFIG@
+LLVM_CPPFLAGS = @LLVM_CPPFLAGS@
LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
LLVM_LDFLAGS = @LLVM_LDFLAGS@
+LLVM_LIBDIR = @LLVM_LIBDIR@
LLVM_LIBS = @LLVM_LIBS@
+LLVM_VERSION = @LLVM_VERSION@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
+MESA_LLVM = @MESA_LLVM@
MKDIR_P = @MKDIR_P@
MSVC2013_COMPAT_CFLAGS = @MSVC2013_COMPAT_CFLAGS@
MSVC2013_COMPAT_CXXFLAGS = @MSVC2013_COMPAT_CXXFLAGS@
@@ -462,6 +464,8 @@ OMX_LIBS = @OMX_LIBS@
OMX_LIB_INSTALL_DIR = @OMX_LIB_INSTALL_DIR@
OPENCL_LIBNAME = @OPENCL_LIBNAME@
OPENCL_VERSION = @OPENCL_VERSION@
+OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
+OPENSSL_LIBS = @OPENSSL_LIBS@
OSMESA_LIB = @OSMESA_LIB@
OSMESA_LIB_DEPS = @OSMESA_LIB_DEPS@
OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
@@ -481,6 +485,8 @@ PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
POSIX_SHELL = @POSIX_SHELL@
+PRESENTPROTO_CFLAGS = @PRESENTPROTO_CFLAGS@
+PRESENTPROTO_LIBS = @PRESENTPROTO_LIBS@
PTHREADSTUBS_CFLAGS = @PTHREADSTUBS_CFLAGS@
PTHREADSTUBS_LIBS = @PTHREADSTUBS_LIBS@
PTHREAD_CC = @PTHREAD_CC@
@@ -496,6 +502,8 @@ SED = @SED@
SELINUX_CFLAGS = @SELINUX_CFLAGS@
SELINUX_LIBS = @SELINUX_LIBS@
SET_MAKE = @SET_MAKE@
+SHA1_CFLAGS = @SHA1_CFLAGS@
+SHA1_LIBS = @SHA1_LIBS@
SHELL = @SHELL@
SIMPENROSE_CFLAGS = @SIMPENROSE_CFLAGS@
SIMPENROSE_LIBS = @SIMPENROSE_LIBS@
@@ -504,8 +512,7 @@ STRIP = @STRIP@
SWR_AVX2_CXXFLAGS = @SWR_AVX2_CXXFLAGS@
SWR_AVX_CXXFLAGS = @SWR_AVX_CXXFLAGS@
SWR_CXX11_CXXFLAGS = @SWR_CXX11_CXXFLAGS@
-SWR_KNL_CXXFLAGS = @SWR_KNL_CXXFLAGS@
-SWR_SKX_CXXFLAGS = @SWR_SKX_CXXFLAGS@
+TIMESTAMP_CMD = @TIMESTAMP_CMD@
VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
VALGRIND_LIBS = @VALGRIND_LIBS@
VA_CFLAGS = @VA_CFLAGS@
@@ -513,12 +520,15 @@ 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@
+VG_LIB_DEPS = @VG_LIB_DEPS@
VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
VL_CFLAGS = @VL_CFLAGS@
@@ -526,7 +536,6 @@ VL_LIBS = @VL_LIBS@
VULKAN_ICD_INSTALL_DIR = @VULKAN_ICD_INSTALL_DIR@
WAYLAND_CFLAGS = @WAYLAND_CFLAGS@
WAYLAND_LIBS = @WAYLAND_LIBS@
-WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@
WAYLAND_SCANNER = @WAYLAND_SCANNER@
WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
@@ -548,10 +557,9 @@ XVMC_LIBS = @XVMC_LIBS@
XVMC_LIB_INSTALL_DIR = @XVMC_LIB_INSTALL_DIR@
XVMC_MAJOR = @XVMC_MAJOR@
XVMC_MINOR = @XVMC_MINOR@
+XXD = @XXD@
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@
@@ -612,6 +620,7 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
+@HAVE_SHARED_GLAPI_TRUE@SHARED_GLAPI_CFLAGS = -DGLX_SHARED_GLAPI
@HAVE_SHARED_GLAPI_TRUE@SHARED_GLAPI_LIB = $(top_builddir)/src/mapi/shared-glapi/libglapi.la
SUBDIRS = $(am__append_7) $(am__append_10) . tests
EXTRA_DIST = SConscript
@@ -621,10 +630,11 @@ AM_CFLAGS = -I$(top_srcdir)/include \
-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) \
- $(EXTRA_DEFINES_XF86VIDMODE) -D_REENTRANT \
- -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" $(DEFINES) \
- $(LIBDRM_CFLAGS) $(DRI2PROTO_CFLAGS) $(GLPROTO_CFLAGS) \
- $(X11_INCLUDES) $(am__append_12) $(am__append_14)
+ $(SHARED_GLAPI_CFLAGS) $(EXTRA_DEFINES_XF86VIDMODE) \
+ -D_REENTRANT -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \
+ $(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 \
@@ -643,13 +653,9 @@ libglx_la_SOURCES = clientattrib.c clientinfo.c compsize.c \
$(am__append_9) $(am__append_13)
libglx_la_LIBADD = $(top_builddir)/src/loader/libloader.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.
+@USE_LIBGLVND_GLX_FALSE@GL_LIB_VERSION = 1:2
+@USE_LIBGLVND_GLX_TRUE@GL_LIB_VERSION = 0
GL_LIBS = \
- $(LIBDRM_LIBS) \
libglx.la \
$(top_builddir)/src/mapi/glapi/libglapi.la \
$(SHARED_GLAPI_LIB) \
diff --git a/lib/mesa/src/glx/SConscript b/lib/mesa/src/glx/SConscript
index 619e4c373..9727803d5 100644
--- a/lib/mesa/src/glx/SConscript
+++ b/lib/mesa/src/glx/SConscript
@@ -83,6 +83,7 @@ sources = [
'dri2_glx.c',
'dri2.c',
'dri_common_query_renderer.c',
+ 'dri_common_interop.c',
#'dri3_glx.c',
'applegl_glx.c',
]
@@ -108,14 +109,14 @@ env.CodeGenerate(
)
env.CodeGenerate(
- target = 'indirect_size.c',
+ target = 'indirect_size.c',
script = GLAPI + 'gen/glX_proto_size.py',
source = sources,
command = python_cmd + ' $SCRIPT -f $SOURCE -m size_c --only-set > $TARGET'
)
env.CodeGenerate(
- target = 'indirect_init.c',
+ target = 'indirect_init.c',
script = GLAPI + 'gen/glX_proto_send.py',
source = sources,
command = python_cmd + ' $SCRIPT -f $SOURCE -m init_c > $TARGET'
diff --git a/lib/mesa/src/glx/apple/Makefile.am b/lib/mesa/src/glx/apple/Makefile.am
index 2cbff9ea9..ca74aa7b9 100644
--- a/lib/mesa/src/glx/apple/Makefile.am
+++ b/lib/mesa/src/glx/apple/Makefile.am
@@ -6,11 +6,11 @@ AM_CFLAGS = \
-I$(top_srcdir)/src \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/glx \
- -I$(top_srcdir)/src/mesa \
-I$(top_builddir)/src/mesa \
+ -I$(top_srcdir)/src/mesa \
-I$(top_srcdir)/src/mapi \
- -I$(top_srcdir)/src/mapi/glapi \
-I$(top_builddir)/src/mapi/glapi \
+ -I$(top_srcdir)/src/mapi/glapi \
$(VISIBILITY_CFLAGS) \
$(SHARED_GLAPI_CFLAGS) \
$(DEFINES) \
diff --git a/lib/mesa/src/glx/apple/Makefile.in b/lib/mesa/src/glx/apple/Makefile.in
index f509a4cd5..8e3ae3417 100644
--- a/lib/mesa/src/glx/apple/Makefile.in
+++ b/lib/mesa/src/glx/apple/Makefile.in
@@ -135,8 +135,6 @@ 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@
@@ -167,6 +165,8 @@ DLLTOOL = @DLLTOOL@
DLOPEN_LIBS = @DLOPEN_LIBS@
DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
DRI2PROTO_LIBS = @DRI2PROTO_LIBS@
+DRI3PROTO_CFLAGS = @DRI3PROTO_CFLAGS@
+DRI3PROTO_LIBS = @DRI3PROTO_LIBS@
DRIGL_CFLAGS = @DRIGL_CFLAGS@
DRIGL_LIBS = @DRIGL_LIBS@
DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
@@ -179,11 +179,10 @@ ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGL_CFLAGS = @EGL_CFLAGS@
+EGL_CLIENT_APIS = @EGL_CLIENT_APIS@
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@
@@ -210,8 +209,6 @@ GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
GREP = @GREP@
HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@
-I915_CFLAGS = @I915_CFLAGS@
-I915_LIBS = @I915_LIBS@
INDENT = @INDENT@
INDENT_FLAGS = @INDENT_FLAGS@
INSTALL = @INSTALL@
@@ -219,40 +216,45 @@ INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTEL_CFLAGS = @INTEL_CFLAGS@
+INTEL_LIBS = @INTEL_LIBS@
LD = @LD@
LDFLAGS = @LDFLAGS@
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@
+LIBSENSORS_LDFLAGS = @LIBSENSORS_LDFLAGS@
+LIBSHA1_CFLAGS = @LIBSHA1_CFLAGS@
+LIBSHA1_LIBS = @LIBSHA1_LIBS@
LIBTOOL = @LIBTOOL@
-LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@
-LIBUNWIND_LIBS = @LIBUNWIND_LIBS@
LIB_DIR = @LIB_DIR@
LIB_EXT = @LIB_EXT@
LIPO = @LIPO@
+LLVM_BINDIR = @LLVM_BINDIR@
LLVM_CFLAGS = @LLVM_CFLAGS@
LLVM_CONFIG = @LLVM_CONFIG@
+LLVM_CPPFLAGS = @LLVM_CPPFLAGS@
LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
LLVM_LDFLAGS = @LLVM_LDFLAGS@
+LLVM_LIBDIR = @LLVM_LIBDIR@
LLVM_LIBS = @LLVM_LIBS@
+LLVM_VERSION = @LLVM_VERSION@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
+MESA_LLVM = @MESA_LLVM@
MKDIR_P = @MKDIR_P@
MSVC2013_COMPAT_CFLAGS = @MSVC2013_COMPAT_CFLAGS@
MSVC2013_COMPAT_CXXFLAGS = @MSVC2013_COMPAT_CXXFLAGS@
@@ -273,6 +275,8 @@ OMX_LIBS = @OMX_LIBS@
OMX_LIB_INSTALL_DIR = @OMX_LIB_INSTALL_DIR@
OPENCL_LIBNAME = @OPENCL_LIBNAME@
OPENCL_VERSION = @OPENCL_VERSION@
+OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
+OPENSSL_LIBS = @OPENSSL_LIBS@
OSMESA_LIB = @OSMESA_LIB@
OSMESA_LIB_DEPS = @OSMESA_LIB_DEPS@
OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
@@ -292,6 +296,8 @@ PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
POSIX_SHELL = @POSIX_SHELL@
+PRESENTPROTO_CFLAGS = @PRESENTPROTO_CFLAGS@
+PRESENTPROTO_LIBS = @PRESENTPROTO_LIBS@
PTHREADSTUBS_CFLAGS = @PTHREADSTUBS_CFLAGS@
PTHREADSTUBS_LIBS = @PTHREADSTUBS_LIBS@
PTHREAD_CC = @PTHREAD_CC@
@@ -307,6 +313,8 @@ SED = @SED@
SELINUX_CFLAGS = @SELINUX_CFLAGS@
SELINUX_LIBS = @SELINUX_LIBS@
SET_MAKE = @SET_MAKE@
+SHA1_CFLAGS = @SHA1_CFLAGS@
+SHA1_LIBS = @SHA1_LIBS@
SHELL = @SHELL@
SIMPENROSE_CFLAGS = @SIMPENROSE_CFLAGS@
SIMPENROSE_LIBS = @SIMPENROSE_LIBS@
@@ -315,8 +323,7 @@ STRIP = @STRIP@
SWR_AVX2_CXXFLAGS = @SWR_AVX2_CXXFLAGS@
SWR_AVX_CXXFLAGS = @SWR_AVX_CXXFLAGS@
SWR_CXX11_CXXFLAGS = @SWR_CXX11_CXXFLAGS@
-SWR_KNL_CXXFLAGS = @SWR_KNL_CXXFLAGS@
-SWR_SKX_CXXFLAGS = @SWR_SKX_CXXFLAGS@
+TIMESTAMP_CMD = @TIMESTAMP_CMD@
VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
VALGRIND_LIBS = @VALGRIND_LIBS@
VA_CFLAGS = @VA_CFLAGS@
@@ -324,12 +331,15 @@ 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@
+VG_LIB_DEPS = @VG_LIB_DEPS@
VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
VL_CFLAGS = @VL_CFLAGS@
@@ -337,7 +347,6 @@ VL_LIBS = @VL_LIBS@
VULKAN_ICD_INSTALL_DIR = @VULKAN_ICD_INSTALL_DIR@
WAYLAND_CFLAGS = @WAYLAND_CFLAGS@
WAYLAND_LIBS = @WAYLAND_LIBS@
-WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@
WAYLAND_SCANNER = @WAYLAND_SCANNER@
WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
@@ -359,10 +368,9 @@ XVMC_LIBS = @XVMC_LIBS@
XVMC_LIB_INSTALL_DIR = @XVMC_LIB_INSTALL_DIR@
XVMC_MAJOR = @XVMC_MAJOR@
XVMC_MINOR = @XVMC_MINOR@
+XXD = @XXD@
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@
@@ -435,6 +443,7 @@ AM_CFLAGS = \
-I$(top_builddir)/src/mapi/glapi \
-I$(top_srcdir)/src/mapi/glapi \
$(VISIBILITY_CFLAGS) \
+ $(SHARED_GLAPI_CFLAGS) \
$(DEFINES) \
$(X11_INCLUDES)
diff --git a/lib/mesa/src/glx/apple/glx_empty.c b/lib/mesa/src/glx/apple/glx_empty.c
index 33fffb5f6..1e9593c6d 100644
--- a/lib/mesa/src/glx/apple/glx_empty.c
+++ b/lib/mesa/src/glx/apple/glx_empty.c
@@ -263,3 +263,19 @@ glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo)
return NULL;
}
#endif
+
+
+_X_EXPORT
+GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX,
+ (Display * dpy, GLXDrawable pbuf),
+ (dpy, pbuf), glXDestroyPbuffer)
+
+ _X_EXPORT GLX_ALIAS_VOID(glXSelectEventSGIX,
+ (Display * dpy, GLXDrawable drawable,
+ unsigned long mask), (dpy, drawable, mask),
+ glXSelectEvent)
+
+ _X_EXPORT GLX_ALIAS_VOID(glXGetSelectedEventSGIX,
+ (Display * dpy, GLXDrawable drawable,
+ unsigned long *mask), (dpy, drawable, mask),
+ glXGetSelectedEvent)
diff --git a/lib/mesa/src/glx/dri2.c b/lib/mesa/src/glx/dri2.c
index f00b96525..9ebd00ac8 100644
--- a/lib/mesa/src/glx/dri2.c
+++ b/lib/mesa/src/glx/dri2.c
@@ -94,6 +94,7 @@ DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
switch ((wire->u.u.type & 0x7f) - info->codes->first_event) {
+#ifdef X_DRI2SwapBuffers
case DRI2_BufferSwapComplete:
{
GLXBufferSwapComplete *aevent = (GLXBufferSwapComplete *)event;
@@ -142,6 +143,8 @@ DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
return True;
}
+#endif
+#ifdef DRI2_InvalidateBuffers
case DRI2_InvalidateBuffers:
{
xDRI2InvalidateBuffers *awire = (xDRI2InvalidateBuffers *)wire;
@@ -149,6 +152,7 @@ DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
dri2InvalidateBuffers(dpy, awire->drawable);
return False;
}
+#endif
default:
/* client doesn't support server event */
break;
@@ -281,6 +285,7 @@ DRI2Connect(Display * dpy, XID window, char **driverName, char **deviceName)
req->window = window;
req->driverType = DRI2DriverDRI;
+#ifdef DRI2DriverPrimeShift
{
char *prime = getenv("DRI_PRIME");
if (prime) {
@@ -292,6 +297,7 @@ DRI2Connect(Display * dpy, XID window, char **driverName, char **deviceName)
((primeid & DRI2DriverPrimeMask) << DRI2DriverPrimeShift);
}
}
+#endif
if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
UnlockDisplay(dpy);
diff --git a/lib/mesa/src/glx/dri2_glx.c b/lib/mesa/src/glx/dri2_glx.c
index ae8cb11ef..d6eb281cf 100644
--- a/lib/mesa/src/glx/dri2_glx.c
+++ b/lib/mesa/src/glx/dri2_glx.c
@@ -74,7 +74,7 @@ struct dri2_display
__glxHashTable *dri2Hash;
- const __DRIextension *loader_extensions[5];
+ const __DRIextension *loader_extensions[4];
};
struct dri2_drawable
@@ -946,25 +946,6 @@ dri2GetSwapInterval(__GLXDRIdrawable *pdraw)
return priv->swap_interval;
}
-static void
-driSetBackgroundContext(void *loaderPrivate)
-{
- struct dri2_context *pcp = (struct dri2_context *) loaderPrivate;
- __glXSetCurrentContext(&pcp->base);
-}
-
-static GLboolean
-driIsThreadSafe(void *loaderPrivate)
-{
- struct dri2_context *pcp = (struct dri2_context *) loaderPrivate;
- /* Check Xlib is running in thread safe mode
- *
- * 'lock_fns' is the XLockDisplay function pointer of the X11 display 'dpy'.
- * It wll be NULL if XInitThreads wasn't called.
- */
- return pcp->base.psc->dpy->lock_fns != NULL;
-}
-
static const __DRIdri2LoaderExtension dri2LoaderExtension = {
.base = { __DRI_DRI2_LOADER, 3 },
@@ -985,13 +966,6 @@ static const __DRIuseInvalidateExtension dri2UseInvalidate = {
.base = { __DRI_USE_INVALIDATE, 1 }
};
-static const __DRIbackgroundCallableExtension driBackgroundCallable = {
- .base = { __DRI_BACKGROUND_CALLABLE, 2 },
-
- .setBackgroundContext = driSetBackgroundContext,
- .isThreadSafe = driIsThreadSafe,
-};
-
_X_HIDDEN void
dri2InvalidateBuffers(Display *dpy, XID drawable)
{
@@ -1311,17 +1285,12 @@ dri2CreateScreen(int screen, struct glx_display * priv)
psp->getBufferAge = NULL;
if (pdp->driMinor >= 2) {
- unsigned char disable;
-
psp->getDrawableMSC = dri2DrawableGetMSC;
psp->waitForMSC = dri2WaitForMSC;
psp->waitForSBC = dri2WaitForSBC;
psp->setSwapInterval = dri2SetSwapInterval;
psp->getSwapInterval = dri2GetSwapInterval;
- if (psc->config->configQueryb(psc->driScreen,
- "glx_disable_oml_sync_control",
- &disable) || !disable)
- __glXEnableDirectExtension(&psc->base, "GLX_OML_sync_control");
+ __glXEnableDirectExtension(&psc->base, "GLX_OML_sync_control");
}
/* DRI2 supports SubBuffer through DRI2CopyRegion, so it's always
@@ -1424,9 +1393,9 @@ dri2CreateDisplay(Display * dpy)
else
pdp->loader_extensions[i++] = &dri2LoaderExtension.base;
- pdp->loader_extensions[i++] = &dri2UseInvalidate.base;
+ pdp->loader_extensions[i++] = &systemTimeExtension.base;
- pdp->loader_extensions[i++] = &driBackgroundCallable.base;
+ pdp->loader_extensions[i++] = &dri2UseInvalidate.base;
pdp->loader_extensions[i++] = NULL;
diff --git a/lib/mesa/src/glx/dri3_glx.c b/lib/mesa/src/glx/dri3_glx.c
index d3a7ea57c..42a94f9f2 100644
--- a/lib/mesa/src/glx/dri3_glx.c
+++ b/lib/mesa/src/glx/dri3_glx.c
@@ -235,11 +235,6 @@ dri3_bind_context(struct glx_context *context, struct glx_context *old,
if (!(*psc->core->bindContext) (pcp->driContext, dri_draw, dri_read))
return GLXBadContext;
- if (dri_draw)
- (*psc->f->invalidate)(dri_draw);
- if (dri_read && dri_read != dri_draw)
- (*psc->f->invalidate)(dri_read);
-
return Success;
}
@@ -353,10 +348,9 @@ dri3_create_context(struct glx_screen *base,
struct glx_context *shareList, int renderType)
{
unsigned int error;
- uint32_t attribs[2] = { GLX_RENDER_TYPE, renderType };
return dri3_create_context_attribs(base, config_base, shareList,
- 1, attribs, &error);
+ 0, NULL, &error);
}
static void
@@ -499,26 +493,9 @@ dri3_flush_front_buffer(__DRIdrawable *driDrawable, void *loaderPrivate)
loader_dri3_flush(draw, __DRI2_FLUSH_DRAWABLE, __DRI2_THROTTLE_FLUSHFRONT);
- (*psc->f->invalidate)(driDrawable);
loader_dri3_wait_gl(draw);
}
-static void
-dri_set_background_context(void *loaderPrivate)
-{
- struct dri3_context *pcp = (struct dri3_context *)loaderPrivate;
- __glXSetCurrentContext(&pcp->base);
-}
-
-static GLboolean
-dri_is_thread_safe(void *loaderPrivate)
-{
- /* Unlike DRI2, DRI3 doesn't call GetBuffers/GetBuffersWithFormat
- * during draw so we're safe here.
- */
- return true;
-}
-
/* The image loader extension record for DRI3
*/
static const __DRIimageLoaderExtension imageLoaderExtension = {
@@ -532,17 +509,10 @@ const __DRIuseInvalidateExtension dri3UseInvalidate = {
.base = { __DRI_USE_INVALIDATE, 1 }
};
-static const __DRIbackgroundCallableExtension driBackgroundCallable = {
- .base = { __DRI_BACKGROUND_CALLABLE, 2 },
-
- .setBackgroundContext = dri_set_background_context,
- .isThreadSafe = dri_is_thread_safe,
-};
-
static const __DRIextension *loader_extensions[] = {
&imageLoaderExtension.base,
+ &systemTimeExtension.base,
&dri3UseInvalidate.base,
- &driBackgroundCallable.base,
NULL
};
@@ -795,9 +765,8 @@ dri3_create_screen(int screen, struct glx_display * priv)
struct dri3_screen *psc;
__GLXDRIscreen *psp;
struct glx_config *configs = NULL, *visuals = NULL;
- char *driverName, *tmp;
+ char *driverName, *deviceName, *tmp;
int i;
- unsigned char disable;
psc = calloc(1, sizeof *psc);
if (psc == NULL)
@@ -825,6 +794,7 @@ dri3_create_screen(int screen, struct glx_display * priv)
}
psc->fd = loader_get_user_preferred_fd(psc->fd, &psc->is_different_gpu);
+ deviceName = NULL;
driverName = loader_get_driver_for_fd(psc->fd);
if (!driverName) {
@@ -935,21 +905,16 @@ dri3_create_screen(int screen, struct glx_display * priv)
psp->waitForSBC = dri3_wait_for_sbc;
psp->setSwapInterval = dri3_set_swap_interval;
psp->getSwapInterval = dri3_get_swap_interval;
- if (psc->config->configQueryb(psc->driScreen,
- "glx_disable_oml_sync_control",
- &disable) || !disable)
- __glXEnableDirectExtension(&psc->base, "GLX_OML_sync_control");
+ __glXEnableDirectExtension(&psc->base, "GLX_OML_sync_control");
psp->copySubBuffer = dri3_copy_sub_buffer;
__glXEnableDirectExtension(&psc->base, "GLX_MESA_copy_sub_buffer");
psp->getBufferAge = dri3_get_buffer_age;
- if (psc->config->configQueryb(psc->driScreen,
- "glx_disable_ext_buffer_age",
- &disable) || !disable)
- __glXEnableDirectExtension(&psc->base, "GLX_EXT_buffer_age");
+ __glXEnableDirectExtension(&psc->base, "GLX_EXT_buffer_age");
free(driverName);
+ free(deviceName);
tmp = getenv("LIBGL_SHOW_FPS");
psc->show_fps_interval = tmp ? atoi(tmp) : 0;
@@ -976,6 +941,7 @@ handle_error:
dlclose(psc->driver);
free(driverName);
+ free(deviceName);
glx_screen_cleanup(&psc->base);
free(psc);
diff --git a/lib/mesa/src/glx/dri3_priv.h b/lib/mesa/src/glx/dri3_priv.h
index 160444907..082237781 100644
--- a/lib/mesa/src/glx/dri3_priv.h
+++ b/lib/mesa/src/glx/dri3_priv.h
@@ -59,50 +59,14 @@
#include <xcb/present.h>
#include <xcb/sync.h>
+#include "loader_dri3_helper.h"
+
/* From xmlpool/options.h, user exposed so should be stable */
#define DRI_CONF_VBLANK_NEVER 0
#define DRI_CONF_VBLANK_DEF_INTERVAL_0 1
#define DRI_CONF_VBLANK_DEF_INTERVAL_1 2
#define DRI_CONF_VBLANK_ALWAYS_SYNC 3
-enum dri3_buffer_type {
- dri3_buffer_back = 0,
- dri3_buffer_front = 1
-};
-
-struct dri3_buffer {
- __DRIimage *image;
- __DRIimage *linear_buffer;
- uint32_t pixmap;
-
- /* Synchronization between the client and X server is done using an
- * xshmfence that is mapped into an X server SyncFence. This lets the
- * client check whether the X server is done using a buffer with a simple
- * xshmfence call, rather than going to read X events from the wire.
- *
- * However, we can only wait for one xshmfence to be triggered at a time,
- * so we need to know *which* buffer is going to be idle next. We do that
- * by waiting for a PresentIdleNotify event. When that event arrives, the
- * 'busy' flag gets cleared and the client knows that the fence has been
- * triggered, and that the wait call will not block.
- */
-
- uint32_t sync_fence; /* XID of X SyncFence object */
- struct xshmfence *shm_fence; /* pointer to xshmfence object */
- GLboolean busy; /* Set on swap, cleared on IdleNotify */
- GLboolean own_pixmap; /* We allocated the pixmap ID, free on destroy */
- void *driverPrivate;
-
- uint32_t size;
- uint32_t pitch;
- uint32_t cpp;
- uint32_t flags;
- uint32_t width, height;
- uint64_t last_swap;
-
- enum dri3_buffer_type buffer_type;
-};
-
struct dri3_display
{
__GLXDRIdisplay base;
@@ -132,6 +96,7 @@ struct dri3_screen {
const __DRI2configQueryExtension *config;
const __DRItexBufferExtension *texBuffer;
const __DRI2rendererQueryExtension *rendererQuery;
+ const __DRI2interopExtension *interop;
const __DRIconfig **driver_configs;
void *driver;
@@ -139,6 +104,8 @@ struct dri3_screen {
int is_different_gpu;
int show_fps_interval;
+
+ struct loader_dri3_extensions loader_dri3_ext;
};
struct dri3_context
@@ -147,60 +114,10 @@ struct dri3_context
__DRIcontext *driContext;
};
-#define DRI3_MAX_BACK 4
-#define DRI3_BACK_ID(i) (i)
-#define DRI3_FRONT_ID (DRI3_MAX_BACK)
-
-static inline int
-dri3_pixmap_buf_id(enum dri3_buffer_type buffer_type)
-{
- if (buffer_type == dri3_buffer_back)
- return DRI3_BACK_ID(0);
- else
- return DRI3_FRONT_ID;
-}
-
-#define DRI3_NUM_BUFFERS (1 + DRI3_MAX_BACK)
-
struct dri3_drawable {
__GLXDRIdrawable base;
- __DRIdrawable *driDrawable;
- int width, height, depth;
+ struct loader_dri3_drawable loader_drawable;
int swap_interval;
- uint8_t have_back;
- uint8_t have_fake_front;
- uint8_t is_pixmap;
- uint8_t flipping;
-
- /* Present extension capabilities
- */
- uint32_t present_capabilities;
-
- /* SBC numbers are tracked by using the serial numbers
- * in the present request and complete events
- */
- uint64_t send_sbc;
- uint64_t recv_sbc;
-
- /* Last received UST/MSC values for pixmap present complete */
- uint64_t ust, msc;
-
- /* Last received UST/MSC values from present notify msc event */
- uint64_t notify_ust, notify_msc;
-
- /* Serial numbers for tracking wait_for_msc events */
- uint32_t send_msc_serial;
- uint32_t recv_msc_serial;
-
- struct dri3_buffer *buffers[DRI3_NUM_BUFFERS];
- int cur_back;
- int num_back;
-
- uint32_t *stamp;
-
- xcb_present_event_t eid;
- xcb_gcontext_t gc;
- xcb_special_event_t *special_event;
/* LIBGL_SHOW_FPS support */
uint64_t previous_ust;
@@ -215,3 +132,12 @@ dri3_query_renderer_integer(struct glx_screen *base, int attribute,
_X_HIDDEN int
dri3_query_renderer_string(struct glx_screen *base, int attribute,
const char **value);
+
+_X_HIDDEN int
+dri3_interop_query_device_info(struct glx_context *ctx,
+ struct mesa_glinterop_device_info *out);
+
+_X_HIDDEN int
+dri3_interop_export_object(struct glx_context *ctx,
+ struct mesa_glinterop_export_in *in,
+ struct mesa_glinterop_export_out *out);
diff --git a/lib/mesa/src/glx/dri_common.c b/lib/mesa/src/glx/dri_common.c
index 10c3f13df..ee9a48a54 100644
--- a/lib/mesa/src/glx/dri_common.c
+++ b/lib/mesa/src/glx/dri_common.c
@@ -165,9 +165,10 @@ driGetDriverExtensions(void *handle, const char *driver_name)
{
const __DRIextension **extensions = NULL;
const __DRIextension **(*get_extensions)(void);
- char *get_extensions_name = loader_get_extensions_name(driver_name);
+ char *get_extensions_name;
- if (get_extensions_name) {
+ if (asprintf(&get_extensions_name, "%s_%s",
+ __DRI_DRIVER_GET_EXTENSIONS, driver_name) != -1) {
get_extensions = dlsym(handle, get_extensions_name);
if (get_extensions) {
free(get_extensions_name);
diff --git a/lib/mesa/src/glx/dri_glx.c b/lib/mesa/src/glx/dri_glx.c
index ae7e11c17..d61ffa3b0 100644
--- a/lib/mesa/src/glx/dri_glx.c
+++ b/lib/mesa/src/glx/dri_glx.c
@@ -199,6 +199,8 @@ glXGetDriverConfig(const char *driverName)
return dlsym(handle, "__driConfigOptions");
}
+#ifdef XDAMAGE_1_1_INTERFACE
+
static GLboolean
has_damage_post(Display * dpy)
{
@@ -272,6 +274,8 @@ static const __DRIdamageExtension damageExtension = {
.reportDamage = __glXReportDamage,
};
+#endif
+
static GLboolean
__glXDRIGetDrawableInfo(__DRIdrawable * drawable,
unsigned int *index, unsigned int *stamp,
diff --git a/lib/mesa/src/glx/drisw_glx.c b/lib/mesa/src/glx/drisw_glx.c
index cc9957769..241ac7f6d 100644
--- a/lib/mesa/src/glx/drisw_glx.c
+++ b/lib/mesa/src/glx/drisw_glx.c
@@ -219,6 +219,7 @@ static const __DRIswrastLoaderExtension swrastLoaderExtension = {
};
static const __DRIextension *loader_extensions[] = {
+ &systemTimeExtension.base,
&swrastLoaderExtension.base,
NULL
};
@@ -255,9 +256,11 @@ drisw_bind_context(struct glx_context *context, struct glx_context *old,
driReleaseDrawables(&pcp->base);
+ if (pdraw == NULL || pread == NULL)
+ return GLXBadDrawable;
+
if ((*psc->core->bindContext) (pcp->driContext,
- pdraw ? pdraw->driDrawable : NULL,
- pread ? pread->driDrawable : NULL))
+ pdraw->driDrawable, pread->driDrawable))
return Success;
return GLXBadContext;
diff --git a/lib/mesa/src/glx/g_glxglvnddispatchfuncs.c b/lib/mesa/src/glx/g_glxglvnddispatchfuncs.c
index 56d894eda..b5e33981a 100644
--- a/lib/mesa/src/glx/g_glxglvnddispatchfuncs.c
+++ b/lib/mesa/src/glx/g_glxglvnddispatchfuncs.c
@@ -4,7 +4,6 @@
*/
#include <stdlib.h>
-#include "glxclient.h"
#include "glxglvnd.h"
#include "glxglvnddispatchfuncs.h"
#include "g_glxglvnddispatchindices.h"
@@ -51,7 +50,6 @@ const char * const __glXDispatchTableStrings[DI_LAST_INDEX] = {
__ATTRIB(GetCurrentDisplayEXT),
// glXGetCurrentDrawable implemented by libglvnd
// glXGetCurrentReadDrawable implemented by libglvnd
- __ATTRIB(GetDriverConfig),
// glXGetFBConfigAttrib implemented by libglvnd
__ATTRIB(GetFBConfigAttribSGIX),
__ATTRIB(GetFBConfigFromVisualSGIX),
@@ -336,17 +334,6 @@ static Display *dispatch_GetCurrentDisplayEXT(void)
-static const char *dispatch_GetDriverConfig(const char *driverName)
-{
- /*
- * The options are constant for a given driverName, so we do not need
- * a context (and apps expect to be able to call this without one).
- */
- return glXGetDriverConfig(driverName);
-}
-
-
-
static int dispatch_GetFBConfigAttribSGIX(Display *dpy, GLXFBConfigSGIX config,
int attribute, int *value_return)
{
@@ -952,7 +939,6 @@ const void * const __glXDispatchFunctions[DI_LAST_INDEX + 1] = {
__ATTRIB(DestroyGLXPbufferSGIX),
__ATTRIB(GetContextIDEXT),
__ATTRIB(GetCurrentDisplayEXT),
- __ATTRIB(GetDriverConfig),
__ATTRIB(GetFBConfigAttribSGIX),
__ATTRIB(GetFBConfigFromVisualSGIX),
__ATTRIB(GetMscRateOML),
diff --git a/lib/mesa/src/glx/g_glxglvnddispatchindices.h b/lib/mesa/src/glx/g_glxglvnddispatchindices.h
index 3ba50a74a..05a2c8cf3 100644
--- a/lib/mesa/src/glx/g_glxglvnddispatchindices.h
+++ b/lib/mesa/src/glx/g_glxglvnddispatchindices.h
@@ -39,7 +39,6 @@ typedef enum __GLXdispatchIndex {
DI_GetCurrentDisplayEXT,
// GetCurrentDrawable implemented by libglvnd
// GetCurrentReadDrawable implemented by libglvnd
- DI_GetDriverConfig,
// GetFBConfigAttrib implemented by libglvnd
DI_GetFBConfigAttribSGIX,
DI_GetFBConfigFromVisualSGIX,
diff --git a/lib/mesa/src/glx/glx_pbuffer.c b/lib/mesa/src/glx/glx_pbuffer.c
index 933b5d9ec..24c073cb9 100644
--- a/lib/mesa/src/glx/glx_pbuffer.c
+++ b/lib/mesa/src/glx/glx_pbuffer.c
@@ -901,7 +901,7 @@ glXGetSelectedEvent(Display * dpy, GLXDrawable drawable, unsigned long *mask)
__glXSendError(dpy, GLXBadDrawable, drawable, X_GLXGetDrawableAttributes,
true);
#else
- unsigned int value = 0;
+ unsigned int value;
/* The non-sense with value is required because on LP64 platforms
@@ -992,6 +992,7 @@ glXDestroyWindow(Display * dpy, GLXWindow win)
#endif
}
+#ifndef GLX_USE_APPLEGL
_GLX_PUBLIC
GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX,
(Display * dpy, GLXPbufferSGIX pbuf),
@@ -1007,3 +1008,4 @@ GLX_ALIAS_VOID(glXGetSelectedEventSGIX,
(Display * dpy, GLXDrawable drawable,
unsigned long *mask), (dpy, drawable, mask),
glXGetSelectedEvent)
+#endif
diff --git a/lib/mesa/src/glx/glxclient.h b/lib/mesa/src/glx/glxclient.h
index 0d29e5635..70733acb2 100644
--- a/lib/mesa/src/glx/glxclient.h
+++ b/lib/mesa/src/glx/glxclient.h
@@ -56,7 +56,7 @@
#include "glxextensions.h"
-#if defined(USE_LIBGLVND)
+#if defined(USE_LIBGLVND_GLX)
#define _GLX_PUBLIC _X_HIDDEN
#else
#define _GLX_PUBLIC _X_EXPORT
diff --git a/lib/mesa/src/glx/glxcmds.c b/lib/mesa/src/glx/glxcmds.c
index 44992f18c..afeecb4ee 100644
--- a/lib/mesa/src/glx/glxcmds.c
+++ b/lib/mesa/src/glx/glxcmds.c
@@ -820,7 +820,7 @@ glXSwapBuffers(Display * dpy, GLXDrawable drawable)
{
#ifdef GLX_USE_APPLEGL
struct glx_context * gc = __glXGetCurrentContext();
- if(gc != &dummyContext && apple_glx_is_current_drawable(dpy, gc->driContext, drawable)) {
+ if(gc != &DummyContext && apple_glx_is_current_drawable(dpy, gc->driContext, drawable)) {
apple_glx_swap_buffers(gc->driContext);
} else {
__glXSendError(dpy, GLXBadCurrentWindow, 0, X_GLXSwapBuffers, false);
@@ -1014,7 +1014,6 @@ fbconfigs_compatible(const struct glx_config * const a,
MATCH_MASK(drawableType);
MATCH_MASK(renderType);
- MATCH_DONT_CARE(sRGBCapable);
/* There is a bug in a few of the XFree86 DDX drivers. They contain
* visuals with a "transparent type" of 0 when they really mean GLX_NONE.
@@ -2652,7 +2651,7 @@ _GLX_PUBLIC void (*glXGetProcAddressARB(const GLubyte * procName)) (void)
f = (gl_function) get_glx_proc_address((const char *) procName);
if ((f == NULL) && (procName[0] == 'g') && (procName[1] == 'l')
&& (procName[2] != 'X')) {
-#ifdef GLX_INDIRECT_RENDERING
+#ifdef GLX_SHARED_GLAPI
f = (gl_function) __indirect_get_proc_address((const char *) procName);
#endif
if (!f)
@@ -2676,10 +2675,19 @@ _GLX_PUBLIC void (*glXGetProcAddressARB(const GLubyte * procName)) (void)
*
* \sa glXGetProcAddressARB
*/
-_GLX_PUBLIC
-GLX_ALIAS(__GLXextFuncPtr, glXGetProcAddress,
- (const GLubyte * procName),
- (procName), glXGetProcAddressARB)
+_GLX_PUBLIC void (*glXGetProcAddress(const GLubyte * procName)) (void)
+#if defined(__GNUC__) && !defined(GLX_ALIAS_UNSUPPORTED)
+# if defined(USE_MGL_NAMESPACE)
+ __attribute__ ((alias("mglXGetProcAddressARB")));
+# else
+ __attribute__ ((alias("glXGetProcAddressARB")));
+# endif
+#else
+{
+ return glXGetProcAddressARB(procName);
+}
+#endif /* __GNUC__ */
+
#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
/**
diff --git a/lib/mesa/src/glx/glxconfig.c b/lib/mesa/src/glx/glxconfig.c
index 0e1643fcd..e5718b143 100644
--- a/lib/mesa/src/glx/glxconfig.c
+++ b/lib/mesa/src/glx/glxconfig.c
@@ -32,6 +32,7 @@
*/
#include <GL/glx.h>
+#include "GL/glxint.h"
#include <stdlib.h>
#include <string.h>
diff --git a/lib/mesa/src/glx/glxextensions.h b/lib/mesa/src/glx/glxextensions.h
index 21ad02a44..743ed97fe 100644
--- a/lib/mesa/src/glx/glxextensions.h
+++ b/lib/mesa/src/glx/glxextensions.h
@@ -281,7 +281,11 @@ typedef void (*PFNGLXDISABLEEXTENSIONPROC) (const char *name);
/* GLX_ALIAS should be used for functions with a non-void return type.
GLX_ALIAS_VOID is for functions with a void return type. */
-# ifdef HAVE_FUNC_ATTRIBUTE_ALIAS
+#ifdef GLX_NO_STATIC_EXTENSION_FUNCTIONS
+# define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func)
+# define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func)
+#else
+# if defined(__GNUC__) && !defined(GLX_ALIAS_UNSUPPORTED)
/* GLX_ALIAS and GLX_ALIAS_VOID both expand to the macro GLX_ALIAS2. Using the
* extra expansion means that the name mangling macros in glx_mangle.h will
* apply before stringification, so the alias attribute will have a string like
@@ -300,7 +304,8 @@ typedef void (*PFNGLXDISABLEEXTENSIONPROC) (const char *name);
# define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \
void real_func proto_args \
{ aliased_func args ; }
-# endif /* HAVE_FUNC_ATTRIBUTE_ALIAS */
+# endif /* __GNUC__ */
+#endif /* GLX_NO_STATIC_EXTENSION_FUNCTIONS */
#ifdef __cplusplus
}
diff --git a/lib/mesa/src/glx/glxglvnd.c b/lib/mesa/src/glx/glxglvnd.c
index b6b415114..2fc9b0080 100644
--- a/lib/mesa/src/glx/glxglvnd.c
+++ b/lib/mesa/src/glx/glxglvnd.c
@@ -1,11 +1,11 @@
#include <string.h>
-#include <stdlib.h>
#include <X11/Xlib.h>
#include "glvnd/libglxabi.h"
#include "glxglvnd.h"
+
static Bool __glXGLVNDIsScreenSupported(Display *dpy, int screen)
{
/* TODO: Think of a better heuristic... */
@@ -17,24 +17,26 @@ static void *__glXGLVNDGetProcAddress(const GLubyte *procName)
return glXGetProcAddressARB(procName);
}
-static int
-compare(const void *l, const void *r)
-{
- const char *s = *(const char **)r;
- return strcmp(l, s);
-}
-
static unsigned FindGLXFunction(const GLubyte *name)
{
- const char **match;
-
- match = bsearch(name, __glXDispatchTableStrings, DI_FUNCTION_COUNT,
- sizeof(const char *), compare);
-
- if (match == NULL)
- return DI_FUNCTION_COUNT;
+ int first = 0;
+ int last = DI_FUNCTION_COUNT - 1;
+
+ while (first <= last) {
+ int middle = (first + last) / 2;
+ int comp = strcmp(__glXDispatchTableStrings[middle],
+ (const char *) name);
+
+ if (comp < 0)
+ first = middle + 1;
+ else if (comp > 0)
+ last = middle - 1;
+ else
+ return middle;
+ }
- return match - __glXDispatchTableStrings;
+ /* Just point to the dummy entry at the end of the respective table */
+ return DI_FUNCTION_COUNT;
}
static void *__glXGLVNDGetDispatchAddress(const GLubyte *procName)
diff --git a/lib/mesa/src/glx/indirect.c b/lib/mesa/src/glx/indirect.c
index d13a30440..b86e28d55 100644
--- a/lib/mesa/src/glx/indirect.c
+++ b/lib/mesa/src/glx/indirect.c
@@ -37,40 +37,52 @@
#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;
+#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)
+
+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;
+ 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)
+
+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;
+ 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
+#define __builtin_expect(x, y) x
#endif
/* If the size and opcode values are known at compile-time, this will, on
@@ -82,24 +94,24 @@ static _X_INLINE int safe_pad(int a)
*((int *)(dest)) = temp.i; } while(0)
NOINLINE CARD32
-__glXReadReply( Display *dpy, size_t size, void * dest, GLboolean reply_is_always_array )
+__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 bytes = (reply_is_always_array)
+ ? (4 * reply.length) : (reply.size * size);
const GLint extra = 4 - (bytes & 3);
_XRead(dpy, dest, bytes);
- if ( extra < 4 ) {
+ if (extra < 4) {
_XEatData(dpy, extra);
}
- }
- else {
- (void) memcpy( dest, &(reply.pad3), size);
+ } else {
+ (void) memcpy(dest, &(reply.pad3), size);
}
}
@@ -107,37 +119,40 @@ __glXReadReply( Display *dpy, size_t size, void * dest, GLboolean reply_is_alway
}
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 )
+__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;
+ 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; }
+ 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 );
+ void *buf = malloc(size);
- if ( buf == NULL ) {
+ if (buf == NULL) {
_XEatData(dpy, size);
__glXSetError(gc, GL_OUT_OF_MEMORY);
- }
- else {
+ } else {
const GLint extra = 4 - (size & 3);
_XRead(dpy, buf, size);
- if ( extra < 4 ) {
+ if (extra < 4) {
_XEatData(dpy, extra);
}
@@ -151,10 +166,10 @@ __glXReadPixelReply( Display *dpy, struct glx_context * gc, unsigned max_dim,
#define X_GLXSingle 0
NOINLINE FASTCALL GLubyte *
-__glXSetupSingleRequest( struct glx_context * gc, GLint sop, GLint cmdlen )
+__glXSetupSingleRequest(struct glx_context *gc, GLint sop, GLint cmdlen)
{
- xGLXSingleReq * req;
- Display * const dpy = gc->currentDpy;
+ xGLXSingleReq *req;
+ Display *const dpy = gc->currentDpy;
(void) __glXFlushRenderBuffer(gc, gc->pc);
LockDisplay(dpy);
@@ -162,14 +177,15 @@ __glXSetupSingleRequest( struct glx_context * gc, GLint sop, GLint cmdlen )
req->reqType = gc->majorOpcode;
req->contextTag = gc->currentContextTag;
req->glxCode = sop;
- return (GLubyte *)(req) + sz_xGLXSingleReq;
+ return (GLubyte *) (req) + sz_xGLXSingleReq;
}
NOINLINE FASTCALL GLubyte *
-__glXSetupVendorRequest( struct glx_context * gc, GLint code, GLint vop, GLint cmdlen )
+__glXSetupVendorRequest(struct glx_context *gc, GLint code, GLint vop,
+ GLint cmdlen)
{
- xGLXVendorPrivateReq * req;
- Display * const dpy = gc->currentDpy;
+ xGLXVendorPrivateReq *req;
+ Display *const dpy = gc->currentDpy;
(void) __glXFlushRenderBuffer(gc, gc->pc);
LockDisplay(dpy);
@@ -178,7 +194,7 @@ __glXSetupVendorRequest( struct glx_context * gc, GLint code, GLint vop, GLint c
req->glxCode = code;
req->vendorCode = vop;
req->contextTag = gc->currentContextTag;
- return (GLubyte *)(req) + sz_xGLXVendorPrivateReq;
+ return (GLubyte *) (req) + sz_xGLXVendorPrivateReq;
}
const GLuint __glXDefaultPixelStore[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 1 };
@@ -195,106 +211,123 @@ const GLuint __glXDefaultPixelStore[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 1 };
#define default_pixel_store_4D_size 36
static FASTCALL NOINLINE void
-generic_3_byte( GLint rop, const void * ptr )
+generic_3_byte(GLint rop, const void *ptr)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 8;
emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *)(gc->pc + 4), ptr, 4);
+ (void) memcpy((void *) (gc->pc + 4), ptr, 4);
gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
+ 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 )
+generic_4_byte(GLint rop, const void *ptr)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 8;
emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *)(gc->pc + 4), ptr, 4);
+ (void) memcpy((void *) (gc->pc + 4), ptr, 4);
gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
+ 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 )
+generic_6_byte(GLint rop, const void *ptr)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 12;
emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *)(gc->pc + 4), ptr, 8);
+ (void) memcpy((void *) (gc->pc + 4), ptr, 8);
gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
+ 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 )
+generic_8_byte(GLint rop, const void *ptr)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 12;
emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *)(gc->pc + 4), ptr, 8);
+ (void) memcpy((void *) (gc->pc + 4), ptr, 8);
gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
+ 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 )
+generic_12_byte(GLint rop, const void *ptr)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 16;
emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *)(gc->pc + 4), ptr, 12);
+ (void) memcpy((void *) (gc->pc + 4), ptr, 12);
gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
+ 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 )
+generic_16_byte(GLint rop, const void *ptr)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 20;
emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *)(gc->pc + 4), ptr, 16);
+ (void) memcpy((void *) (gc->pc + 4), ptr, 16);
gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
+ 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 )
+generic_24_byte(GLint rop, const void *ptr)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 28;
emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *)(gc->pc + 4), ptr, 24);
+ (void) memcpy((void *) (gc->pc + 4), ptr, 24);
gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
+ 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 )
+generic_32_byte(GLint rop, const void *ptr)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 36;
emit_header(gc->pc, rop, cmdlen);
- (void) memcpy((void *)(gc->pc + 4), ptr, 32);
+ (void) memcpy((void *) (gc->pc + 4), ptr, 32);
gc->pc += cmdlen;
- if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
+ 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)
+void
+__indirect_glNewList(GLuint list, GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -304,20 +337,23 @@ void __indirect_glNewList(GLuint list, GLenum mode)
(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();
+ 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)
+void
+__indirect_glEndList(void)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 0;
#endif
@@ -328,27 +364,32 @@ void __indirect_glEndList(void)
xcb_glx_end_list(c, gc->currentContextTag);
#else
(void) __glXSetupSingleRequest(gc, X_GLsop_EndList, cmdlen);
- UnlockDisplay(dpy); SyncHandle();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLrop_CallList 1
-void __indirect_glCallList(GLuint list)
+void
+__indirect_glCallList(GLuint list)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glCallLists(GLsizei n, GLenum type, const GLvoid * lists)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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) {
@@ -360,35 +401,38 @@ void __indirect_glCallLists(GLsizei n, GLenum type, const GLvoid * lists)
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));
-}
+ 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)
+void
+__indirect_glDeleteLists(GLuint list, GLsizei range)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -398,20 +442,23 @@ void __indirect_glDeleteLists(GLuint list, GLsizei range)
(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();
+ 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)
+GLuint
+__indirect_glGenLists(GLsizei range)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
GLuint retval = (GLuint) 0;
#ifndef USE_XCB
const GLuint cmdlen = 4;
@@ -420,2637 +467,3251 @@ GLuint __indirect_glGenLists(GLsizei range)
#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);
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return retval;
}
#define X_GLrop_ListBase 3
-void __indirect_glListBase(GLuint base)
+void
+__indirect_glListBase(GLuint base)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glBegin(GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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;
+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);
-}
+ 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)
+void
+__indirect_glColor3b(GLbyte red, GLbyte green, GLbyte blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor3bv(const GLbyte *v)
{
- generic_3_byte( X_GLrop_Color3bv, v );
+ generic_3_byte(X_GLrop_Color3bv, v);
}
#define X_GLrop_Color3dv 7
-void __indirect_glColor3d(GLdouble red, GLdouble green, GLdouble blue)
+void
+__indirect_glColor3d(GLdouble red, GLdouble green, GLdouble blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor3dv(const GLdouble * v)
{
- generic_24_byte( X_GLrop_Color3dv, v );
+ generic_24_byte(X_GLrop_Color3dv, v);
}
#define X_GLrop_Color3fv 8
-void __indirect_glColor3f(GLfloat red, GLfloat green, GLfloat blue)
+void
+__indirect_glColor3f(GLfloat red, GLfloat green, GLfloat blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor3fv(const GLfloat * v)
{
- generic_12_byte( X_GLrop_Color3fv, v );
+ generic_12_byte(X_GLrop_Color3fv, v);
}
#define X_GLrop_Color3iv 9
-void __indirect_glColor3i(GLint red, GLint green, GLint blue)
+void
+__indirect_glColor3i(GLint red, GLint green, GLint blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor3iv(const GLint * v)
{
- generic_12_byte( X_GLrop_Color3iv, v );
+ generic_12_byte(X_GLrop_Color3iv, v);
}
#define X_GLrop_Color3sv 10
-void __indirect_glColor3s(GLshort red, GLshort green, GLshort blue)
+void
+__indirect_glColor3s(GLshort red, GLshort green, GLshort blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor3sv(const GLshort * v)
{
- generic_6_byte( X_GLrop_Color3sv, v );
+ generic_6_byte(X_GLrop_Color3sv, v);
}
#define X_GLrop_Color3ubv 11
-void __indirect_glColor3ub(GLubyte red, GLubyte green, GLubyte blue)
+void
+__indirect_glColor3ub(GLubyte red, GLubyte green, GLubyte blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor3ubv(const GLubyte *v)
{
- generic_3_byte( X_GLrop_Color3ubv, v );
+ generic_3_byte(X_GLrop_Color3ubv, v);
}
#define X_GLrop_Color3uiv 12
-void __indirect_glColor3ui(GLuint red, GLuint green, GLuint blue)
+void
+__indirect_glColor3ui(GLuint red, GLuint green, GLuint blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor3uiv(const GLuint * v)
{
- generic_12_byte( X_GLrop_Color3uiv, v );
+ generic_12_byte(X_GLrop_Color3uiv, v);
}
#define X_GLrop_Color3usv 13
-void __indirect_glColor3us(GLushort red, GLushort green, GLushort blue)
+void
+__indirect_glColor3us(GLushort red, GLushort green, GLushort blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor3usv(const GLushort * v)
{
- generic_6_byte( X_GLrop_Color3usv, v );
+ generic_6_byte(X_GLrop_Color3usv, v);
}
#define X_GLrop_Color4bv 14
-void __indirect_glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+void
+__indirect_glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor4bv(const GLbyte *v)
{
- generic_4_byte( X_GLrop_Color4bv, v );
+ generic_4_byte(X_GLrop_Color4bv, v);
}
#define X_GLrop_Color4dv 15
-void __indirect_glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+void
+__indirect_glColor4d(GLdouble red, GLdouble green, GLdouble blue,
+ GLdouble alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor4dv(const GLdouble * v)
{
- generic_32_byte( X_GLrop_Color4dv, v );
+ generic_32_byte(X_GLrop_Color4dv, v);
}
#define X_GLrop_Color4fv 16
-void __indirect_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+void
+__indirect_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor4fv(const GLfloat * v)
{
- generic_16_byte( X_GLrop_Color4fv, v );
+ generic_16_byte(X_GLrop_Color4fv, v);
}
#define X_GLrop_Color4iv 17
-void __indirect_glColor4i(GLint red, GLint green, GLint blue, GLint alpha)
+void
+__indirect_glColor4i(GLint red, GLint green, GLint blue, GLint alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor4iv(const GLint * v)
{
- generic_16_byte( X_GLrop_Color4iv, v );
+ generic_16_byte(X_GLrop_Color4iv, v);
}
#define X_GLrop_Color4sv 18
-void __indirect_glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
+void
+__indirect_glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor4sv(const GLshort * v)
{
- generic_8_byte( X_GLrop_Color4sv, v );
+ generic_8_byte(X_GLrop_Color4sv, v);
}
#define X_GLrop_Color4ubv 19
-void __indirect_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+void
+__indirect_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor4ubv(const GLubyte *v)
{
- generic_4_byte( X_GLrop_Color4ubv, v );
+ generic_4_byte(X_GLrop_Color4ubv, v);
}
#define X_GLrop_Color4uiv 20
-void __indirect_glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
+void
+__indirect_glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor4uiv(const GLuint * v)
{
- generic_16_byte( X_GLrop_Color4uiv, v );
+ generic_16_byte(X_GLrop_Color4uiv, v);
}
#define X_GLrop_Color4usv 21
-void __indirect_glColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
+void
+__indirect_glColor4us(GLushort red, GLushort green, GLushort blue,
+ GLushort alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColor4usv(const GLushort * v)
{
- generic_8_byte( X_GLrop_Color4usv, v );
+ generic_8_byte(X_GLrop_Color4usv, v);
}
#define X_GLrop_EdgeFlagv 22
-void __indirect_glEdgeFlag(GLboolean flag)
+void
+__indirect_glEdgeFlag(GLboolean flag)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEdgeFlagv(const GLboolean * flag)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEnd(void)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glIndexd(GLdouble c)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glIndexdv(const GLdouble * c)
{
- generic_8_byte( X_GLrop_Indexdv, c );
+ generic_8_byte(X_GLrop_Indexdv, c);
}
#define X_GLrop_Indexfv 25
-void __indirect_glIndexf(GLfloat c)
+void
+__indirect_glIndexf(GLfloat c)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glIndexfv(const GLfloat * c)
{
- generic_4_byte( X_GLrop_Indexfv, c );
+ generic_4_byte(X_GLrop_Indexfv, c);
}
#define X_GLrop_Indexiv 26
-void __indirect_glIndexi(GLint c)
+void
+__indirect_glIndexi(GLint c)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glIndexiv(const GLint * c)
{
- generic_4_byte( X_GLrop_Indexiv, c );
+ generic_4_byte(X_GLrop_Indexiv, c);
}
#define X_GLrop_Indexsv 27
-void __indirect_glIndexs(GLshort c)
+void
+__indirect_glIndexs(GLshort c)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glIndexsv(const GLshort * c)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glNormal3bv(const GLbyte *v)
{
- generic_3_byte( X_GLrop_Normal3bv, v );
+ generic_3_byte(X_GLrop_Normal3bv, v);
}
#define X_GLrop_Normal3dv 29
-void __indirect_glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
+void
+__indirect_glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glNormal3dv(const GLdouble * v)
{
- generic_24_byte( X_GLrop_Normal3dv, v );
+ generic_24_byte(X_GLrop_Normal3dv, v);
}
#define X_GLrop_Normal3fv 30
-void __indirect_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
+void
+__indirect_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glNormal3fv(const GLfloat * v)
{
- generic_12_byte( X_GLrop_Normal3fv, v );
+ generic_12_byte(X_GLrop_Normal3fv, v);
}
#define X_GLrop_Normal3iv 31
-void __indirect_glNormal3i(GLint nx, GLint ny, GLint nz)
+void
+__indirect_glNormal3i(GLint nx, GLint ny, GLint nz)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glNormal3iv(const GLint * v)
{
- generic_12_byte( X_GLrop_Normal3iv, v );
+ generic_12_byte(X_GLrop_Normal3iv, v);
}
#define X_GLrop_Normal3sv 32
-void __indirect_glNormal3s(GLshort nx, GLshort ny, GLshort nz)
+void
+__indirect_glNormal3s(GLshort nx, GLshort ny, GLshort nz)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glNormal3sv(const GLshort * v)
{
- generic_6_byte( X_GLrop_Normal3sv, v );
+ generic_6_byte(X_GLrop_Normal3sv, v);
}
#define X_GLrop_RasterPos2dv 33
-void __indirect_glRasterPos2d(GLdouble x, GLdouble y)
+void
+__indirect_glRasterPos2d(GLdouble x, GLdouble y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos2dv(const GLdouble * v)
{
- generic_16_byte( X_GLrop_RasterPos2dv, v );
+ generic_16_byte(X_GLrop_RasterPos2dv, v);
}
#define X_GLrop_RasterPos2fv 34
-void __indirect_glRasterPos2f(GLfloat x, GLfloat y)
+void
+__indirect_glRasterPos2f(GLfloat x, GLfloat y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos2fv(const GLfloat * v)
{
- generic_8_byte( X_GLrop_RasterPos2fv, v );
+ generic_8_byte(X_GLrop_RasterPos2fv, v);
}
#define X_GLrop_RasterPos2iv 35
-void __indirect_glRasterPos2i(GLint x, GLint y)
+void
+__indirect_glRasterPos2i(GLint x, GLint y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos2iv(const GLint * v)
{
- generic_8_byte( X_GLrop_RasterPos2iv, v );
+ generic_8_byte(X_GLrop_RasterPos2iv, v);
}
#define X_GLrop_RasterPos2sv 36
-void __indirect_glRasterPos2s(GLshort x, GLshort y)
+void
+__indirect_glRasterPos2s(GLshort x, GLshort y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos2sv(const GLshort * v)
{
- generic_4_byte( X_GLrop_RasterPos2sv, v );
+ generic_4_byte(X_GLrop_RasterPos2sv, v);
}
#define X_GLrop_RasterPos3dv 37
-void __indirect_glRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
+void
+__indirect_glRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos3dv(const GLdouble * v)
{
- generic_24_byte( X_GLrop_RasterPos3dv, v );
+ generic_24_byte(X_GLrop_RasterPos3dv, v);
}
#define X_GLrop_RasterPos3fv 38
-void __indirect_glRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
+void
+__indirect_glRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos3fv(const GLfloat * v)
{
- generic_12_byte( X_GLrop_RasterPos3fv, v );
+ generic_12_byte(X_GLrop_RasterPos3fv, v);
}
#define X_GLrop_RasterPos3iv 39
-void __indirect_glRasterPos3i(GLint x, GLint y, GLint z)
+void
+__indirect_glRasterPos3i(GLint x, GLint y, GLint z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos3iv(const GLint * v)
{
- generic_12_byte( X_GLrop_RasterPos3iv, v );
+ generic_12_byte(X_GLrop_RasterPos3iv, v);
}
#define X_GLrop_RasterPos3sv 40
-void __indirect_glRasterPos3s(GLshort x, GLshort y, GLshort z)
+void
+__indirect_glRasterPos3s(GLshort x, GLshort y, GLshort z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos3sv(const GLshort * v)
{
- generic_6_byte( X_GLrop_RasterPos3sv, v );
+ generic_6_byte(X_GLrop_RasterPos3sv, v);
}
#define X_GLrop_RasterPos4dv 41
-void __indirect_glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+void
+__indirect_glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos4dv(const GLdouble * v)
{
- generic_32_byte( X_GLrop_RasterPos4dv, v );
+ generic_32_byte(X_GLrop_RasterPos4dv, v);
}
#define X_GLrop_RasterPos4fv 42
-void __indirect_glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+void
+__indirect_glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos4fv(const GLfloat * v)
{
- generic_16_byte( X_GLrop_RasterPos4fv, v );
+ generic_16_byte(X_GLrop_RasterPos4fv, v);
}
#define X_GLrop_RasterPos4iv 43
-void __indirect_glRasterPos4i(GLint x, GLint y, GLint z, GLint w)
+void
+__indirect_glRasterPos4i(GLint x, GLint y, GLint z, GLint w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos4iv(const GLint * v)
{
- generic_16_byte( X_GLrop_RasterPos4iv, v );
+ generic_16_byte(X_GLrop_RasterPos4iv, v);
}
#define X_GLrop_RasterPos4sv 44
-void __indirect_glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
+void
+__indirect_glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRasterPos4sv(const GLshort * v)
{
- generic_8_byte( X_GLrop_RasterPos4sv, v );
+ generic_8_byte(X_GLrop_RasterPos4sv, v);
}
#define X_GLrop_Rectdv 45
-void __indirect_glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+void
+__indirect_glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRectdv(const GLdouble * v1, const GLdouble * v2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRectfv(const GLfloat * v1, const GLfloat * v2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRecti(GLint x1, GLint y1, GLint x2, GLint y2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRectiv(const GLint * v1, const GLint * v2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRectsv(const GLshort * v1, const GLshort * v2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord1d(GLdouble s)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord1dv(const GLdouble * v)
{
- generic_8_byte( X_GLrop_TexCoord1dv, v );
+ generic_8_byte(X_GLrop_TexCoord1dv, v);
}
#define X_GLrop_TexCoord1fv 50
-void __indirect_glTexCoord1f(GLfloat s)
+void
+__indirect_glTexCoord1f(GLfloat s)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord1fv(const GLfloat * v)
{
- generic_4_byte( X_GLrop_TexCoord1fv, v );
+ generic_4_byte(X_GLrop_TexCoord1fv, v);
}
#define X_GLrop_TexCoord1iv 51
-void __indirect_glTexCoord1i(GLint s)
+void
+__indirect_glTexCoord1i(GLint s)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord1iv(const GLint * v)
{
- generic_4_byte( X_GLrop_TexCoord1iv, v );
+ generic_4_byte(X_GLrop_TexCoord1iv, v);
}
#define X_GLrop_TexCoord1sv 52
-void __indirect_glTexCoord1s(GLshort s)
+void
+__indirect_glTexCoord1s(GLshort s)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord1sv(const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord2d(GLdouble s, GLdouble t)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord2dv(const GLdouble * v)
{
- generic_16_byte( X_GLrop_TexCoord2dv, v );
+ generic_16_byte(X_GLrop_TexCoord2dv, v);
}
#define X_GLrop_TexCoord2fv 54
-void __indirect_glTexCoord2f(GLfloat s, GLfloat t)
+void
+__indirect_glTexCoord2f(GLfloat s, GLfloat t)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord2fv(const GLfloat * v)
{
- generic_8_byte( X_GLrop_TexCoord2fv, v );
+ generic_8_byte(X_GLrop_TexCoord2fv, v);
}
#define X_GLrop_TexCoord2iv 55
-void __indirect_glTexCoord2i(GLint s, GLint t)
+void
+__indirect_glTexCoord2i(GLint s, GLint t)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord2iv(const GLint * v)
{
- generic_8_byte( X_GLrop_TexCoord2iv, v );
+ generic_8_byte(X_GLrop_TexCoord2iv, v);
}
#define X_GLrop_TexCoord2sv 56
-void __indirect_glTexCoord2s(GLshort s, GLshort t)
+void
+__indirect_glTexCoord2s(GLshort s, GLshort t)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord2sv(const GLshort * v)
{
- generic_4_byte( X_GLrop_TexCoord2sv, v );
+ generic_4_byte(X_GLrop_TexCoord2sv, v);
}
#define X_GLrop_TexCoord3dv 57
-void __indirect_glTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
+void
+__indirect_glTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord3dv(const GLdouble * v)
{
- generic_24_byte( X_GLrop_TexCoord3dv, v );
+ generic_24_byte(X_GLrop_TexCoord3dv, v);
}
#define X_GLrop_TexCoord3fv 58
-void __indirect_glTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
+void
+__indirect_glTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord3fv(const GLfloat * v)
{
- generic_12_byte( X_GLrop_TexCoord3fv, v );
+ generic_12_byte(X_GLrop_TexCoord3fv, v);
}
#define X_GLrop_TexCoord3iv 59
-void __indirect_glTexCoord3i(GLint s, GLint t, GLint r)
+void
+__indirect_glTexCoord3i(GLint s, GLint t, GLint r)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord3iv(const GLint * v)
{
- generic_12_byte( X_GLrop_TexCoord3iv, v );
+ generic_12_byte(X_GLrop_TexCoord3iv, v);
}
#define X_GLrop_TexCoord3sv 60
-void __indirect_glTexCoord3s(GLshort s, GLshort t, GLshort r)
+void
+__indirect_glTexCoord3s(GLshort s, GLshort t, GLshort r)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord3sv(const GLshort * v)
{
- generic_6_byte( X_GLrop_TexCoord3sv, v );
+ generic_6_byte(X_GLrop_TexCoord3sv, v);
}
#define X_GLrop_TexCoord4dv 61
-void __indirect_glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+void
+__indirect_glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord4dv(const GLdouble * v)
{
- generic_32_byte( X_GLrop_TexCoord4dv, v );
+ generic_32_byte(X_GLrop_TexCoord4dv, v);
}
#define X_GLrop_TexCoord4fv 62
-void __indirect_glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+void
+__indirect_glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord4fv(const GLfloat * v)
{
- generic_16_byte( X_GLrop_TexCoord4fv, v );
+ generic_16_byte(X_GLrop_TexCoord4fv, v);
}
#define X_GLrop_TexCoord4iv 63
-void __indirect_glTexCoord4i(GLint s, GLint t, GLint r, GLint q)
+void
+__indirect_glTexCoord4i(GLint s, GLint t, GLint r, GLint q)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord4iv(const GLint * v)
{
- generic_16_byte( X_GLrop_TexCoord4iv, v );
+ generic_16_byte(X_GLrop_TexCoord4iv, v);
}
#define X_GLrop_TexCoord4sv 64
-void __indirect_glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
+void
+__indirect_glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexCoord4sv(const GLshort * v)
{
- generic_8_byte( X_GLrop_TexCoord4sv, v );
+ generic_8_byte(X_GLrop_TexCoord4sv, v);
}
#define X_GLrop_Vertex2dv 65
-void __indirect_glVertex2d(GLdouble x, GLdouble y)
+void
+__indirect_glVertex2d(GLdouble x, GLdouble y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex2dv(const GLdouble * v)
{
- generic_16_byte( X_GLrop_Vertex2dv, v );
+ generic_16_byte(X_GLrop_Vertex2dv, v);
}
#define X_GLrop_Vertex2fv 66
-void __indirect_glVertex2f(GLfloat x, GLfloat y)
+void
+__indirect_glVertex2f(GLfloat x, GLfloat y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex2fv(const GLfloat * v)
{
- generic_8_byte( X_GLrop_Vertex2fv, v );
+ generic_8_byte(X_GLrop_Vertex2fv, v);
}
#define X_GLrop_Vertex2iv 67
-void __indirect_glVertex2i(GLint x, GLint y)
+void
+__indirect_glVertex2i(GLint x, GLint y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex2iv(const GLint * v)
{
- generic_8_byte( X_GLrop_Vertex2iv, v );
+ generic_8_byte(X_GLrop_Vertex2iv, v);
}
#define X_GLrop_Vertex2sv 68
-void __indirect_glVertex2s(GLshort x, GLshort y)
+void
+__indirect_glVertex2s(GLshort x, GLshort y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex2sv(const GLshort * v)
{
- generic_4_byte( X_GLrop_Vertex2sv, v );
+ generic_4_byte(X_GLrop_Vertex2sv, v);
}
#define X_GLrop_Vertex3dv 69
-void __indirect_glVertex3d(GLdouble x, GLdouble y, GLdouble z)
+void
+__indirect_glVertex3d(GLdouble x, GLdouble y, GLdouble z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex3dv(const GLdouble * v)
{
- generic_24_byte( X_GLrop_Vertex3dv, v );
+ generic_24_byte(X_GLrop_Vertex3dv, v);
}
#define X_GLrop_Vertex3fv 70
-void __indirect_glVertex3f(GLfloat x, GLfloat y, GLfloat z)
+void
+__indirect_glVertex3f(GLfloat x, GLfloat y, GLfloat z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex3fv(const GLfloat * v)
{
- generic_12_byte( X_GLrop_Vertex3fv, v );
+ generic_12_byte(X_GLrop_Vertex3fv, v);
}
#define X_GLrop_Vertex3iv 71
-void __indirect_glVertex3i(GLint x, GLint y, GLint z)
+void
+__indirect_glVertex3i(GLint x, GLint y, GLint z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex3iv(const GLint * v)
{
- generic_12_byte( X_GLrop_Vertex3iv, v );
+ generic_12_byte(X_GLrop_Vertex3iv, v);
}
#define X_GLrop_Vertex3sv 72
-void __indirect_glVertex3s(GLshort x, GLshort y, GLshort z)
+void
+__indirect_glVertex3s(GLshort x, GLshort y, GLshort z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex3sv(const GLshort * v)
{
- generic_6_byte( X_GLrop_Vertex3sv, v );
+ generic_6_byte(X_GLrop_Vertex3sv, v);
}
#define X_GLrop_Vertex4dv 73
-void __indirect_glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+void
+__indirect_glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex4dv(const GLdouble * v)
{
- generic_32_byte( X_GLrop_Vertex4dv, v );
+ generic_32_byte(X_GLrop_Vertex4dv, v);
}
#define X_GLrop_Vertex4fv 74
-void __indirect_glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+void
+__indirect_glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex4fv(const GLfloat * v)
{
- generic_16_byte( X_GLrop_Vertex4fv, v );
+ generic_16_byte(X_GLrop_Vertex4fv, v);
}
#define X_GLrop_Vertex4iv 75
-void __indirect_glVertex4i(GLint x, GLint y, GLint z, GLint w)
+void
+__indirect_glVertex4i(GLint x, GLint y, GLint z, GLint w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex4iv(const GLint * v)
{
- generic_16_byte( X_GLrop_Vertex4iv, v );
+ generic_16_byte(X_GLrop_Vertex4iv, v);
}
#define X_GLrop_Vertex4sv 76
-void __indirect_glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
+void
+__indirect_glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertex4sv(const GLshort * v)
{
- generic_8_byte( X_GLrop_Vertex4sv, v );
+ generic_8_byte(X_GLrop_Vertex4sv, v);
}
#define X_GLrop_ClipPlane 77
-void __indirect_glClipPlane(GLenum plane, const GLdouble * equation)
+void
+__indirect_glClipPlane(GLenum plane, const GLdouble * equation)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColorMaterial(GLenum face, GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glCullFace(GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFogf(GLenum pname, GLfloat param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFogfv(GLenum pname, const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFogi(GLenum pname, GLint param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFogiv(GLenum pname, const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFrontFace(GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glHint(GLenum target, GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLightf(GLenum light, GLenum pname, GLfloat param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLightfv(GLenum light, GLenum pname, const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLighti(GLenum light, GLenum pname, GLint param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLightiv(GLenum light, GLenum pname, const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLightModelf(GLenum pname, GLfloat param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLightModelfv(GLenum pname, const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLightModeli(GLenum pname, GLint param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLightModeliv(GLenum pname, const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLineStipple(GLint factor, GLushort pattern)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLineWidth(GLfloat width)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMaterialf(GLenum face, GLenum pname, GLfloat param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMaterialfv(GLenum face, GLenum pname, const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMateriali(GLenum face, GLenum pname, GLint param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMaterialiv(GLenum face, GLenum pname, const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPointSize(GLfloat size)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPolygonMode(GLenum face, GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+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;
+ 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); }
+ 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)
+void
+__indirect_glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glShadeModel(GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexParameterf(GLenum target, GLenum pname, GLfloat param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexParameterfv(GLenum target, GLenum pname,
+ const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexParameteri(GLenum target, GLenum pname, GLint param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexParameteriv(GLenum target, GLenum pname, const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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);
+__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);
-}
+ 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)
+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 );
+ __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)
+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 );
+ __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)
+void
+__indirect_glTexEnvf(GLenum target, GLenum pname, GLfloat param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexEnvfv(GLenum target, GLenum pname, const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexEnvi(GLenum target, GLenum pname, GLint param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexEnviv(GLenum target, GLenum pname, const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexGend(GLenum coord, GLenum pname, GLdouble param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexGendv(GLenum coord, GLenum pname, const GLdouble * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexGenf(GLenum coord, GLenum pname, GLfloat param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexGenfv(GLenum coord, GLenum pname, const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexGeni(GLenum coord, GLenum pname, GLint param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTexGeniv(GLenum coord, GLenum pname, const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glInitNames(void)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLoadName(GLuint name)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPassThrough(GLfloat token)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPopName(void)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPushName(GLuint name)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glDrawBuffer(GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glClear(GLbitfield mask)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glClearAccum(GLfloat red, GLfloat green, GLfloat blue,
+ GLfloat alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glClearIndex(GLfloat c)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glClearColor(GLclampf red, GLclampf green, GLclampf blue,
+ GLclampf alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glClearStencil(GLint s)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glClearDepth(GLclampd depth)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glStencilMask(GLuint mask)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColorMask(GLboolean red, GLboolean green, GLboolean blue,
+ GLboolean alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glDepthMask(GLboolean flag)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glIndexMask(GLuint mask)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glAccum(GLenum op, GLfloat value)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPopAttrib(void)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPushAttrib(GLbitfield mask)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn,
+ GLdouble v1, GLdouble v2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1,
+ GLfloat v2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEvalCoord1d(GLdouble u)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEvalCoord1dv(const GLdouble * u)
{
- generic_8_byte( X_GLrop_EvalCoord1dv, u );
+ generic_8_byte(X_GLrop_EvalCoord1dv, u);
}
#define X_GLrop_EvalCoord1fv 152
-void __indirect_glEvalCoord1f(GLfloat u)
+void
+__indirect_glEvalCoord1f(GLfloat u)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEvalCoord1fv(const GLfloat * u)
{
- generic_4_byte( X_GLrop_EvalCoord1fv, u );
+ generic_4_byte(X_GLrop_EvalCoord1fv, u);
}
#define X_GLrop_EvalCoord2dv 153
-void __indirect_glEvalCoord2d(GLdouble u, GLdouble v)
+void
+__indirect_glEvalCoord2d(GLdouble u, GLdouble v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEvalCoord2dv(const GLdouble * u)
{
- generic_16_byte( X_GLrop_EvalCoord2dv, u );
+ generic_16_byte(X_GLrop_EvalCoord2dv, u);
}
#define X_GLrop_EvalCoord2fv 154
-void __indirect_glEvalCoord2f(GLfloat u, GLfloat v)
+void
+__indirect_glEvalCoord2f(GLfloat u, GLfloat v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEvalCoord2fv(const GLfloat * u)
{
- generic_8_byte( X_GLrop_EvalCoord2fv, u );
+ generic_8_byte(X_GLrop_EvalCoord2fv, u);
}
#define X_GLrop_EvalMesh1 155
-void __indirect_glEvalMesh1(GLenum mode, GLint i1, GLint i2)
+void
+__indirect_glEvalMesh1(GLenum mode, GLint i1, GLint i2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEvalPoint1(GLint i)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glEvalPoint2(GLint i, GLint j)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glAlphaFunc(GLenum func, GLclampf ref)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glBlendFunc(GLenum sfactor, GLenum dfactor)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLogicOp(GLenum opcode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glStencilFunc(GLenum func, GLint ref, GLuint mask)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glDepthFunc(GLenum func)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPixelZoom(GLfloat xfactor, GLfloat yfactor)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPixelTransferf(GLenum pname, GLfloat param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPixelTransferi(GLenum pname, GLint param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat * values)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -3061,34 +3722,37 @@ void __indirect_glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat * values
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));
-}
+ 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)
+void
+__indirect_glPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint * values)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -3099,34 +3763,37 @@ void __indirect_glPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint * values
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));
-}
+ 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)
+void
+__indirect_glPixelMapusv(GLenum map, GLsizei mapsize, const GLushort * values)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -3137,62 +3804,73 @@ void __indirect_glPixelMapusv(GLenum map, GLsizei mapsize, const GLushort * valu
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));
-}
+ 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)
+void
+__indirect_glReadBuffer(GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height,
+ GLenum type)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+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;
+ 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
@@ -3200,74 +3878,96 @@ void __indirect_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GL
#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);
+ 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();
+ 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;
+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);
-}
+ 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)
+void
+__indirect_glGetClipPlane(GLenum plane, GLdouble * equation)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 4;
#endif
@@ -3275,24 +3975,34 @@ void __indirect_glGetClipPlane(GLenum plane, GLdouble * equation)
#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));
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetLightfv 118
-void __indirect_glGetLightfv(GLenum light, GLenum pname, GLfloat * params)
+void
+__indirect_glGetLightfv(GLenum light, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3300,30 +4010,41 @@ void __indirect_glGetLightfv(GLenum light, GLenum pname, GLfloat * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetLightiv 119
-void __indirect_glGetLightiv(GLenum light, GLenum pname, GLint * params)
+void
+__indirect_glGetLightiv(GLenum light, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3331,30 +4052,41 @@ void __indirect_glGetLightiv(GLenum light, GLenum pname, GLint * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetMapdv 120
-void __indirect_glGetMapdv(GLenum target, GLenum query, GLdouble * v)
+void
+__indirect_glGetMapdv(GLenum target, GLenum query, GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3362,30 +4094,39 @@ void __indirect_glGetMapdv(GLenum target, GLenum query, GLdouble * v)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetMapfv 121
-void __indirect_glGetMapfv(GLenum target, GLenum query, GLfloat * v)
+void
+__indirect_glGetMapfv(GLenum target, GLenum query, GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3393,30 +4134,39 @@ void __indirect_glGetMapfv(GLenum target, GLenum query, GLfloat * v)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetMapiv 122
-void __indirect_glGetMapiv(GLenum target, GLenum query, GLint * v)
+void
+__indirect_glGetMapiv(GLenum target, GLenum query, GLint * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3424,30 +4174,39 @@ void __indirect_glGetMapiv(GLenum target, GLenum query, GLint * v)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetMaterialfv 123
-void __indirect_glGetMaterialfv(GLenum face, GLenum pname, GLfloat * params)
+void
+__indirect_glGetMaterialfv(GLenum face, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3455,30 +4214,41 @@ void __indirect_glGetMaterialfv(GLenum face, GLenum pname, GLfloat * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetMaterialiv 124
-void __indirect_glGetMaterialiv(GLenum face, GLenum pname, GLint * params)
+void
+__indirect_glGetMaterialiv(GLenum face, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3486,30 +4256,41 @@ void __indirect_glGetMaterialiv(GLenum face, GLenum pname, GLint * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetPixelMapfv 125
-void __indirect_glGetPixelMapfv(GLenum map, GLfloat * values)
+void
+__indirect_glGetPixelMapfv(GLenum map, GLfloat * values)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 4;
#endif
@@ -3517,29 +4298,39 @@ void __indirect_glGetPixelMapfv(GLenum map, GLfloat * values)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetPixelMapuiv 126
-void __indirect_glGetPixelMapuiv(GLenum map, GLuint * values)
+void
+__indirect_glGetPixelMapuiv(GLenum map, GLuint * values)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 4;
#endif
@@ -3547,29 +4338,40 @@ void __indirect_glGetPixelMapuiv(GLenum map, GLuint * values)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetPixelMapusv 127
-void __indirect_glGetPixelMapusv(GLenum map, GLushort * values)
+void
+__indirect_glGetPixelMapusv(GLenum map, GLushort * values)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 4;
#endif
@@ -3577,29 +4379,40 @@ void __indirect_glGetPixelMapusv(GLenum map, GLushort * values)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetPolygonStipple 128
-void __indirect_glGetPolygonStipple(GLubyte * mask)
+void
+__indirect_glGetPolygonStipple(GLubyte *mask)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 4;
#endif
@@ -3607,24 +4420,35 @@ void __indirect_glGetPolygonStipple(GLubyte * mask)
#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);
+ 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();
+ 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)
+void
+__indirect_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3632,30 +4456,41 @@ void __indirect_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetTexEnviv 131
-void __indirect_glGetTexEnviv(GLenum target, GLenum pname, GLint * params)
+void
+__indirect_glGetTexEnviv(GLenum target, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3663,30 +4498,41 @@ void __indirect_glGetTexEnviv(GLenum target, GLenum pname, GLint * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetTexGendv 132
-void __indirect_glGetTexGendv(GLenum coord, GLenum pname, GLdouble * params)
+void
+__indirect_glGetTexGendv(GLenum coord, GLenum pname, GLdouble * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3694,30 +4540,41 @@ void __indirect_glGetTexGendv(GLenum coord, GLenum pname, GLdouble * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetTexGenfv 133
-void __indirect_glGetTexGenfv(GLenum coord, GLenum pname, GLfloat * params)
+void
+__indirect_glGetTexGenfv(GLenum coord, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3725,30 +4582,41 @@ void __indirect_glGetTexGenfv(GLenum coord, GLenum pname, GLfloat * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetTexGeniv 134
-void __indirect_glGetTexGeniv(GLenum coord, GLenum pname, GLint * params)
+void
+__indirect_glGetTexGeniv(GLenum coord, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3756,31 +4624,43 @@ void __indirect_glGetTexGeniv(GLenum coord, GLenum pname, GLint * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ 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)
+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;
+ 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
@@ -3788,31 +4668,51 @@ void __indirect_glGetTexImage(GLenum target, GLint level, GLenum format, GLenum
#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);
+ 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();
+ 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)
+void
+__indirect_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3820,30 +4720,42 @@ void __indirect_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat * param
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetTexParameteriv 137
-void __indirect_glGetTexParameteriv(GLenum target, GLenum pname, GLint * params)
+void
+__indirect_glGetTexParameteriv(GLenum target, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -3851,30 +4763,43 @@ void __indirect_glGetTexParameteriv(GLenum target, GLenum pname, GLint * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetTexLevelParameterfv 138
-void __indirect_glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat * params)
+void
+__indirect_glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname,
+ GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 12;
#endif
@@ -3882,31 +4807,44 @@ void __indirect_glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pnam
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetTexLevelParameteriv 139
-void __indirect_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint * params)
+void
+__indirect_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname,
+ GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 12;
#endif
@@ -3914,31 +4852,43 @@ void __indirect_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pnam
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_IsList 141
-GLboolean __indirect_glIsList(GLuint list)
+GLboolean
+__indirect_glIsList(GLuint list)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
GLboolean retval = (GLboolean) 0;
#ifndef USE_XCB
const GLuint cmdlen = 4;
@@ -3947,362 +4897,454 @@ GLboolean __indirect_glIsList(GLuint list)
#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);
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return retval;
}
#define X_GLrop_DepthRange 174
-void __indirect_glDepthRange(GLclampd zNear, GLclampd zFar)
+void
+__indirect_glDepthRange(GLclampd zNear, GLclampd zFar)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFrustum(GLdouble left, GLdouble right, GLdouble bottom,
+ GLdouble top, GLdouble zNear, GLdouble zFar)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLoadIdentity(void)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLoadMatrixf(const GLfloat * m)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glLoadMatrixd(const GLdouble * m)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMatrixMode(GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultMatrixf(const GLfloat * m)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultMatrixd(const GLdouble * m)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glOrtho(GLdouble left, GLdouble right, GLdouble bottom,
+ GLdouble top, GLdouble zNear, GLdouble zFar)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPopMatrix(void)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPushMatrix(void)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glScaled(GLdouble x, GLdouble y, GLdouble z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glScalef(GLfloat x, GLfloat y, GLfloat z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTranslated(GLdouble x, GLdouble y, GLdouble z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glTranslatef(GLfloat x, GLfloat y, GLfloat z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glBindTexture(GLenum target, GLuint texture)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glIndexub(GLubyte c)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glIndexubv(const GLubyte *c)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPolygonOffset(GLfloat factor, GLfloat units)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat,
+ GLint x, GLint y, GLsizei width, GLint border)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+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();
+ 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); }
+ 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)
+void
+__indirect_glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset,
+ GLint x, GLint y, GLsizei width)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+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();
+ 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); }
+ 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)
+void
+__indirect_glDeleteTextures(GLsizei n, const GLuint * textures)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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
@@ -4320,55 +5362,63 @@ void __indirect_glDeleteTextures(GLsizei n, const GLuint * textures)
(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();
+ 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)
+void
+glDeleteTexturesEXT(GLsizei n, const GLuint * textures)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLDELETETEXTURESEXTPROC p =
(PFNGLDELETETEXTURESEXTPROC) disp_table[327];
- p(n, textures);
+ 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);
+ 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;
}
- 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)
+void
+__indirect_glGenTextures(GLsizei n, GLuint * textures)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 4;
#endif
@@ -4380,55 +5430,68 @@ void __indirect_glGenTextures(GLsizei n, GLuint * textures)
#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));
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLvop_GenTexturesEXT 13
-void glGenTexturesEXT(GLsizei n, GLuint * textures)
+void
+glGenTexturesEXT(GLsizei n, GLuint * textures)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
+ 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);
+ 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;
}
- 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)
+GLboolean
+__indirect_glIsTexture(GLuint texture)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
GLboolean retval = (GLboolean) 0;
#ifndef USE_XCB
const GLuint cmdlen = 4;
@@ -4437,52 +5500,64 @@ GLboolean __indirect_glIsTexture(GLuint texture)
#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);
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return retval;
}
#define X_GLvop_IsTextureEXT 14
-GLboolean glIsTextureEXT(GLuint texture)
+GLboolean
+glIsTextureEXT(GLuint texture)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
+ 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();
+ 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;
}
- return retval;
-}
}
#define X_GLrop_PrioritizeTextures 4118
-void __indirect_glPrioritizeTextures(GLsizei n, const GLuint * textures, const GLclampf * priorities)
+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));
+ 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;
@@ -4492,207 +5567,260 @@ void __indirect_glPrioritizeTextures(GLsizei n, const GLuint * textures, const G
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); }
+ 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;
+__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);
-}
+ 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)
+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 );
+ __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)
+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 );
+ __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)
+void
+__indirect_glBlendColor(GLclampf red, GLclampf green, GLclampf blue,
+ GLclampf alpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glBlendEquation(GLenum mode)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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;
+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);
-}
+ 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)
+void
+__indirect_glColorTableParameterfv(GLenum target, GLenum pname,
+ const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glColorTableParameteriv(GLenum target, GLenum pname,
+ const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glCopyColorTable(GLenum target, GLenum internalformat, GLint x,
+ GLint y, GLsizei width)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+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;
+ 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
@@ -4700,60 +5828,83 @@ void __indirect_glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoi
#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);
+ 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();
+ 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)
+void
+gl_dispatch_stub_343(GLenum target, GLenum format, GLenum type,
+ GLvoid * table)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETCOLORTABLESGIPROC p =
(PFNGLGETCOLORTABLESGIPROC) disp_table[343];
- p(target, format, type, table);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetColorTableParameterfv 148
-void __indirect_glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat * params)
+void
+__indirect_glGetColorTableParameterfv(GLenum target, GLenum pname,
+ GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -4761,58 +5912,76 @@ void __indirect_glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLvop_GetColorTableParameterfvSGI 4099
-void gl_dispatch_stub_344(GLenum target, GLenum pname, GLfloat * params)
+void
+gl_dispatch_stub_344(GLenum target, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETCOLORTABLEPARAMETERFVSGIPROC p =
(PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) disp_table[344];
- p(target, pname, params);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetColorTableParameteriv 149
-void __indirect_glGetColorTableParameteriv(GLenum target, GLenum pname, GLint * params)
+void
+__indirect_glGetColorTableParameteriv(GLenum target, GLenum pname,
+ GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -4820,271 +5989,346 @@ void __indirect_glGetColorTableParameteriv(GLenum target, GLenum pname, GLint *
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLvop_GetColorTableParameterivSGI 4100
-void gl_dispatch_stub_345(GLenum target, GLenum pname, GLint * params)
+void
+gl_dispatch_stub_345(GLenum target, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETCOLORTABLEPARAMETERIVSGIPROC p =
(PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) disp_table[345];
- p(target, pname, params);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLrop_ColorSubTable 195
-void __indirect_glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data)
+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;
+ 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);
-}
+ 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)
+void
+__indirect_glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y,
+ GLsizei width)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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;
+__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);
-}
+ 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)
+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 );
+ __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)
+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 );
+ __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)
+void
+__indirect_glConvolutionParameterf(GLenum target, GLenum pname,
+ GLfloat params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glConvolutionParameterfv(GLenum target, GLenum pname,
+ const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glConvolutionParameteri(GLenum target, GLenum pname, GLint params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glConvolutionParameteriv(GLenum target, GLenum pname,
+ const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glCopyConvolutionFilter1D(GLenum target, GLenum internalformat,
+ GLint x, GLint y, GLsizei width)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glCopyConvolutionFilter2D(GLenum target, GLenum internalformat,
+ GLint x, GLint y, GLsizei width,
+ GLsizei height)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+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;
+ 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
@@ -5092,61 +6336,82 @@ void __indirect_glGetConvolutionFilter(GLenum target, GLenum format, GLenum type
#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);
+ 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();
+ 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)
+void
+gl_dispatch_stub_356(GLenum target, GLenum format, GLenum type,
+ GLvoid * image)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETCONVOLUTIONFILTEREXTPROC p =
(PFNGLGETCONVOLUTIONFILTEREXTPROC) disp_table[356];
- p(target, format, type, image);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetConvolutionParameterfv 151
-void __indirect_glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat * params)
+void
+__indirect_glGetConvolutionParameterfv(GLenum target, GLenum pname,
+ GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -5154,58 +6419,76 @@ void __indirect_glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLvop_GetConvolutionParameterfvEXT 2
-void gl_dispatch_stub_357(GLenum target, GLenum pname, GLfloat * params)
+void
+gl_dispatch_stub_357(GLenum target, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC p =
(PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) disp_table[357];
- p(target, pname, params);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetConvolutionParameteriv 152
-void __indirect_glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint * params)
+void
+__indirect_glGetConvolutionParameteriv(GLenum target, GLenum pname,
+ GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -5213,59 +6496,77 @@ void __indirect_glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint *
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLvop_GetConvolutionParameterivEXT 3
-void gl_dispatch_stub_358(GLenum target, GLenum pname, GLint * params)
+void
+gl_dispatch_stub_358(GLenum target, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC p =
(PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) disp_table[358];
- p(target, pname, params);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetHistogram 154
-void __indirect_glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values)
+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;
+ 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
@@ -5273,62 +6574,84 @@ void __indirect_glGetHistogram(GLenum target, GLboolean reset, GLenum format, GL
#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);
+ 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();
+ 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)
+void
+gl_dispatch_stub_361(GLenum target, GLboolean reset, GLenum format,
+ GLenum type, GLvoid * values)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETHISTOGRAMEXTPROC p =
(PFNGLGETHISTOGRAMEXTPROC) disp_table[361];
- p(target, reset, format, type, values);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetHistogramParameterfv 155
-void __indirect_glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat * params)
+void
+__indirect_glGetHistogramParameterfv(GLenum target, GLenum pname,
+ GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -5336,58 +6659,75 @@ void __indirect_glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLvop_GetHistogramParameterfvEXT 6
-void gl_dispatch_stub_362(GLenum target, GLenum pname, GLfloat * params)
+void
+gl_dispatch_stub_362(GLenum target, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETHISTOGRAMPARAMETERFVEXTPROC p =
(PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) disp_table[362];
- p(target, pname, params);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetHistogramParameteriv 156
-void __indirect_glGetHistogramParameteriv(GLenum target, GLenum pname, GLint * params)
+void
+__indirect_glGetHistogramParameteriv(GLenum target, GLenum pname,
+ GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -5395,59 +6735,76 @@ void __indirect_glGetHistogramParameteriv(GLenum target, GLenum pname, GLint * p
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLvop_GetHistogramParameterivEXT 7
-void gl_dispatch_stub_363(GLenum target, GLenum pname, GLint * params)
+void
+gl_dispatch_stub_363(GLenum target, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETHISTOGRAMPARAMETERIVEXTPROC p =
(PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) disp_table[363];
- p(target, pname, params);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetMinmax 157
-void __indirect_glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values)
+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;
+ 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
@@ -5455,62 +6812,80 @@ void __indirect_glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenu
#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);
+ 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();
+ 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)
+void
+gl_dispatch_stub_364(GLenum target, GLboolean reset, GLenum format,
+ GLenum type, GLvoid * values)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetMinmaxParameterfv 158
-void __indirect_glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat * params)
+void
+__indirect_glGetMinmaxParameterfv(GLenum target, GLenum pname,
+ GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -5518,58 +6893,72 @@ void __indirect_glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat * pa
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLvop_GetMinmaxParameterfvEXT 9
-void gl_dispatch_stub_365(GLenum target, GLenum pname, GLfloat * params)
+void
+gl_dispatch_stub_365(GLenum target, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETMINMAXPARAMETERFVEXTPROC p =
(PFNGLGETMINMAXPARAMETERFVEXTPROC) disp_table[365];
- p(target, pname, params);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLsop_GetMinmaxParameteriv 159
-void __indirect_glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint * params)
+void
+__indirect_glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -5577,940 +6966,1170 @@ void __indirect_glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint * para
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLvop_GetMinmaxParameterivEXT 10
-void gl_dispatch_stub_366(GLenum target, GLenum pname, GLint * params)
+void
+gl_dispatch_stub_366(GLenum target, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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();
+ const _glapi_proc *const disp_table = (_glapi_proc *) GET_DISPATCH();
PFNGLGETMINMAXPARAMETERIVEXTPROC p =
(PFNGLGETMINMAXPARAMETERIVEXTPROC) disp_table[366];
- p(target, pname, params);
+ 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();
+ 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;
}
- return;
-}
}
#define X_GLrop_Histogram 4110
-void __indirect_glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink)
+void
+__indirect_glHistogram(GLenum target, GLsizei width, GLenum internalformat,
+ GLboolean sink)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMinmax(GLenum target, GLenum internalformat, GLboolean sink)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glResetHistogram(GLenum target)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glResetMinmax(GLenum target)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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;
+__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);
-}
+ 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)
+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 );
+ __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;
+__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);
-}
+ 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)
+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 );
+ __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)
+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();
+ 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); }
+ 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)
+void
+__indirect_glActiveTexture(GLenum texture)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord1d(GLenum target, GLdouble s)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord1dv(GLenum target, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord1fARB(GLenum target, GLfloat s)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord1fvARB(GLenum target, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord1i(GLenum target, GLint s)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord1iv(GLenum target, const GLint * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord1s(GLenum target, GLshort s)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord1sv(GLenum target, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord2d(GLenum target, GLdouble s, GLdouble t)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord2dv(GLenum target, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord2fvARB(GLenum target, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord2i(GLenum target, GLint s, GLint t)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord2iv(GLenum target, const GLint * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord2s(GLenum target, GLshort s, GLshort t)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord2sv(GLenum target, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord3d(GLenum target, GLdouble s, GLdouble t,
+ GLdouble r)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord3dv(GLenum target, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t,
+ GLfloat r)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord3fvARB(GLenum target, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord3i(GLenum target, GLint s, GLint t, GLint r)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord3iv(GLenum target, const GLint * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord3s(GLenum target, GLshort s, GLshort t, GLshort r)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord3sv(GLenum target, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord4d(GLenum target, GLdouble s, GLdouble t,
+ GLdouble r, GLdouble q)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord4dv(GLenum target, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t,
+ GLfloat r, GLfloat q)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord4fvARB(GLenum target, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord4i(GLenum target, GLint s, GLint t, GLint r,
+ GLint q)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord4iv(GLenum target, const GLint * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord4s(GLenum target, GLshort s, GLshort t, GLshort r,
+ GLshort q)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glMultiTexCoord4sv(GLenum target, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSampleCoverage(GLclampf value, GLboolean invert)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB,
+ GLenum sfactorAlpha, GLenum dfactorAlpha)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFogCoordd(GLdouble coord)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFogCoorddv(const GLdouble * coord)
{
- generic_8_byte( X_GLrop_FogCoorddv, coord );
+ generic_8_byte(X_GLrop_FogCoorddv, coord);
}
#define X_GLrop_PointParameterf 2065
-void __indirect_glPointParameterf(GLenum pname, GLfloat param)
+void
+__indirect_glPointParameterf(GLenum pname, GLfloat param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPointParameterfv(GLenum pname, const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPointParameteri(GLenum pname, GLint param)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glPointParameteriv(GLenum pname, const GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3b(GLbyte red, GLbyte green, GLbyte blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3bv(const GLbyte *v)
{
- generic_3_byte( X_GLrop_SecondaryColor3bv, v );
+ generic_3_byte(X_GLrop_SecondaryColor3bv, v);
}
#define X_GLrop_SecondaryColor3dv 4130
-void __indirect_glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue)
+void
+__indirect_glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3dv(const GLdouble * v)
{
- generic_24_byte( X_GLrop_SecondaryColor3dv, v );
+ generic_24_byte(X_GLrop_SecondaryColor3dv, v);
}
#define X_GLrop_SecondaryColor3iv 4128
-void __indirect_glSecondaryColor3i(GLint red, GLint green, GLint blue)
+void
+__indirect_glSecondaryColor3i(GLint red, GLint green, GLint blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3iv(const GLint * v)
{
- generic_12_byte( X_GLrop_SecondaryColor3iv, v );
+ generic_12_byte(X_GLrop_SecondaryColor3iv, v);
}
#define X_GLrop_SecondaryColor3sv 4127
-void __indirect_glSecondaryColor3s(GLshort red, GLshort green, GLshort blue)
+void
+__indirect_glSecondaryColor3s(GLshort red, GLshort green, GLshort blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3sv(const GLshort * v)
{
- generic_6_byte( X_GLrop_SecondaryColor3sv, v );
+ generic_6_byte(X_GLrop_SecondaryColor3sv, v);
}
#define X_GLrop_SecondaryColor3ubv 4131
-void __indirect_glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue)
+void
+__indirect_glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3ubv(const GLubyte *v)
{
- generic_3_byte( X_GLrop_SecondaryColor3ubv, v );
+ generic_3_byte(X_GLrop_SecondaryColor3ubv, v);
}
#define X_GLrop_SecondaryColor3uiv 4133
-void __indirect_glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue)
+void
+__indirect_glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3uiv(const GLuint * v)
{
- generic_12_byte( X_GLrop_SecondaryColor3uiv, v );
+ generic_12_byte(X_GLrop_SecondaryColor3uiv, v);
}
#define X_GLrop_SecondaryColor3usv 4132
-void __indirect_glSecondaryColor3us(GLushort red, GLushort green, GLushort blue)
+void
+__indirect_glSecondaryColor3us(GLushort red, GLushort green, GLushort blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3usv(const GLushort * v)
{
- generic_6_byte( X_GLrop_SecondaryColor3usv, v );
+ generic_6_byte(X_GLrop_SecondaryColor3usv, v);
}
#define X_GLrop_WindowPos3fv 230
-void __indirect_glWindowPos3f(GLfloat x, GLfloat y, GLfloat z)
+void
+__indirect_glWindowPos3f(GLfloat x, GLfloat y, GLfloat z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glWindowPos3fv(const GLfloat * v)
{
- generic_12_byte( X_GLrop_WindowPos3fv, v );
+ generic_12_byte(X_GLrop_WindowPos3fv, v);
}
#define X_GLrop_BeginQuery 231
-void __indirect_glBeginQuery(GLenum target, GLuint id)
+void
+__indirect_glBeginQuery(GLenum target, GLuint id)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glDeleteQueries(GLsizei n, const GLuint * ids)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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
@@ -6528,31 +8147,37 @@ void __indirect_glDeleteQueries(GLsizei n, const GLuint * ids)
(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();
+ 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)
+void
+__indirect_glEndQuery(GLenum target)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glGenQueries(GLsizei n, GLuint * ids)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 4;
#endif
@@ -6564,24 +8189,34 @@ void __indirect_glGenQueries(GLsizei n, GLuint * ids)
#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));
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetQueryObjectiv 165
-void __indirect_glGetQueryObjectiv(GLuint id, GLenum pname, GLint * params)
+void
+__indirect_glGetQueryObjectiv(GLuint id, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -6589,30 +8224,42 @@ void __indirect_glGetQueryObjectiv(GLuint id, GLenum pname, GLint * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetQueryObjectuiv 166
-void __indirect_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint * params)
+void
+__indirect_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -6620,30 +8267,42 @@ void __indirect_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_GetQueryiv 164
-void __indirect_glGetQueryiv(GLenum target, GLenum pname, GLint * params)
+void
+__indirect_glGetQueryiv(GLenum target, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
#ifndef USE_XCB
const GLuint cmdlen = 8;
#endif
@@ -6651,30 +8310,41 @@ void __indirect_glGetQueryiv(GLenum target, GLenum pname, GLint * params)
#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);
+ 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));
+ (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));
+ (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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return;
}
#define X_GLsop_IsQuery 163
-GLboolean __indirect_glIsQuery(GLuint id)
+GLboolean
+__indirect_glIsQuery(GLuint id)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ struct glx_context *const gc = __glXGetCurrentContext();
+ Display *const dpy = gc->currentDpy;
GLboolean retval = (GLboolean) 0;
#ifndef USE_XCB
const GLuint cmdlen = 4;
@@ -6683,35 +8353,44 @@ GLboolean __indirect_glIsQuery(GLuint id)
#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);
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
#endif /* USE_XCB */
}
return retval;
}
#define X_GLrop_BlendEquationSeparate 4228
-void __indirect_glBlendEquationSeparate(GLenum modeRGB, GLenum modeA)
+void
+__indirect_glBlendEquationSeparate(GLenum modeRGB, GLenum modeA)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glDrawBuffers(GLsizei n, const GLenum * bufs)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -6722,408 +8401,504 @@ void __indirect_glDrawBuffers(GLsizei n, const GLenum * bufs)
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));
-}
+ 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)
+void
+__indirect_glVertexAttrib1d(GLuint index, GLdouble x)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1dv(GLuint index, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1s(GLuint index, GLshort x)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1sv(GLuint index, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2dv(GLuint index, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2s(GLuint index, GLshort x, GLshort y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2sv(GLuint index, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3dv(GLuint index, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3sv(GLuint index, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4Nbv(GLuint index, const GLbyte *v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4Niv(GLuint index, const GLint * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4Nsv(GLuint index, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z,
+ GLubyte w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4Nubv(GLuint index, const GLubyte *v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4Nuiv(GLuint index, const GLuint * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4Nusv(GLuint index, const GLushort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4bv(GLuint index, const GLbyte *v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z,
+ GLdouble w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4dv(GLuint index, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4iv(GLuint index, const GLint * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z,
+ GLshort w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4sv(GLuint index, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4ubv(GLuint index, const GLubyte *v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4uiv(GLuint index, const GLuint * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4usv(GLuint index, const GLushort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glClampColor(GLenum target, GLenum clamp)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glBindProgramARB(GLenum target, GLuint program)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glDeleteProgramsARB(GLsizei n, const GLuint * programs)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
@@ -7134,201 +8909,256 @@ void __indirect_glDeleteProgramsARB(GLsizei n, const GLuint * programs)
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();
+ 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)
+void
+__indirect_glGenProgramsARB(GLsizei n, GLuint * programs)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetProgramStringARB 1308
-void __indirect_glGetProgramStringARB(GLenum target, GLenum pname, GLvoid * string)
+void
+__indirect_glGetProgramStringARB(GLenum target, GLenum pname, GLvoid * string)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetProgramivARB 1307
-void __indirect_glGetProgramivARB(GLenum target, GLenum pname, GLint * params)
+void
+__indirect_glGetProgramivARB(GLenum target, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_IsProgramARB 1304
-GLboolean __indirect_glIsProgramARB(GLuint program)
+GLboolean
+__indirect_glIsProgramARB(GLuint program)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ 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)
+void
+__indirect_glProgramEnvParameter4dARB(GLenum target, GLuint index, GLdouble x,
+ GLdouble y, GLdouble z, GLdouble w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glProgramEnvParameter4dvARB(GLenum target, GLuint index,
+ const GLdouble * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glProgramEnvParameter4fARB(GLenum target, GLuint index, GLfloat x,
+ GLfloat y, GLfloat z, GLfloat w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glProgramEnvParameter4fvARB(GLenum target, GLuint index,
+ const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glProgramLocalParameter4dARB(GLenum target, GLuint index,
+ GLdouble x, GLdouble y, GLdouble z,
+ GLdouble w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glProgramLocalParameter4dvARB(GLenum target, GLuint index,
+ const GLdouble * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glProgramLocalParameter4fARB(GLenum target, GLuint index,
+ GLfloat x, GLfloat y, GLfloat z,
+ GLfloat w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glProgramLocalParameter4fvARB(GLenum target, GLuint index,
+ const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glProgramStringARB(GLenum target, GLenum format, GLsizei len,
+ const GLvoid * string)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 16 + safe_pad(len);
if (0 + safe_pad(len) < 0) {
__glXSetError(gc, GL_INVALID_VALUE);
@@ -7339,198 +9169,241 @@ void __indirect_glProgramStringARB(GLenum target, GLenum format, GLsizei len, co
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);
-}
+ 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)
+void
+__indirect_glVertexAttrib1fARB(GLuint index, GLfloat x)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1fvARB(GLuint index, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2fARB(GLuint index, GLfloat x, GLfloat y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2fvARB(GLuint index, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3fvARB(GLuint index, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z,
+ GLfloat w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4fvARB(GLuint index, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glBindFramebuffer(GLenum target, GLuint framebuffer)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glBindRenderbuffer(GLenum target, GLuint renderbuffer)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+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();
+ 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); }
+ 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)
+GLenum
+__indirect_glCheckFramebufferStatus(GLenum target)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return retval;
}
#define X_GLrop_DeleteFramebuffers 4320
-void __indirect_glDeleteFramebuffers(GLsizei n, const GLuint * framebuffers)
+void
+__indirect_glDeleteFramebuffers(GLsizei n, const GLuint * framebuffers)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -7541,18 +9414,22 @@ void __indirect_glDeleteFramebuffers(GLsizei n, const GLuint * framebuffers)
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); }
+ 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)
+void
+__indirect_glDeleteRenderbuffers(GLsizei n, const GLuint * renderbuffers)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -7563,296 +9440,380 @@ void __indirect_glDeleteRenderbuffers(GLsizei n, const GLuint * renderbuffers)
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); }
+ 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)
+void
+__indirect_glFramebufferRenderbuffer(GLenum target, GLenum attachment,
+ GLenum renderbuffertarget,
+ GLuint renderbuffer)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFramebufferTexture1D(GLenum target, GLenum attachment,
+ GLenum textarget, GLuint texture,
+ GLint level)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFramebufferTexture2D(GLenum target, GLenum attachment,
+ GLenum textarget, GLuint texture,
+ GLint level)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFramebufferTexture3D(GLenum target, GLenum attachment,
+ GLenum textarget, GLuint texture,
+ GLint level, GLint layer)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFramebufferTextureLayer(GLenum target, GLenum attachment,
+ GLuint texture, GLint level, GLint layer)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glGenFramebuffers(GLsizei n, GLuint * framebuffers)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GenRenderbuffers 1423
-void __indirect_glGenRenderbuffers(GLsizei n, GLuint * renderbuffers)
+void
+__indirect_glGenRenderbuffers(GLsizei n, GLuint * renderbuffers)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLrop_GenerateMipmap 4325
-void __indirect_glGenerateMipmap(GLenum target)
+void
+__indirect_glGenerateMipmap(GLenum target)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glGetFramebufferAttachmentParameteriv(GLenum target,
+ GLenum attachment,
+ GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetRenderbufferParameteriv 1424
-void __indirect_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint * params)
+void
+__indirect_glGetRenderbufferParameteriv(GLenum target, GLenum pname,
+ GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_IsFramebuffer 1425
-GLboolean __indirect_glIsFramebuffer(GLuint framebuffer)
+GLboolean
+__indirect_glIsFramebuffer(GLuint framebuffer)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return retval;
}
#define X_GLvop_IsRenderbuffer 1422
-GLboolean __indirect_glIsRenderbuffer(GLuint renderbuffer)
+GLboolean
+__indirect_glIsRenderbuffer(GLuint renderbuffer)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return retval;
}
#define X_GLrop_RenderbufferStorage 4318
-void __indirect_glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
+void
+__indirect_glRenderbufferStorage(GLenum target, GLenum internalformat,
+ GLsizei width, GLsizei height)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glRenderbufferStorageMultisample(GLenum target, GLsizei samples,
+ GLenum internalformat,
+ GLsizei width, GLsizei height)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSampleMaskSGIS(GLclampf value, GLboolean invert)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSamplePatternSGIS(GLenum pattern)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3fEXT(GLfloat red, GLfloat green, GLfloat blue)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glSecondaryColor3fvEXT(const GLfloat * v)
{
- generic_12_byte( X_GLrop_SecondaryColor3fvEXT, v );
+ generic_12_byte(X_GLrop_SecondaryColor3fvEXT, v);
}
#define X_GLrop_FogCoordfvEXT 4124
-void __indirect_glFogCoordfEXT(GLfloat coord)
+void
+__indirect_glFogCoordfEXT(GLfloat coord)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glFogCoordfvEXT(const GLfloat * coord)
{
- generic_4_byte( X_GLrop_FogCoordfvEXT, coord );
+ generic_4_byte(X_GLrop_FogCoordfvEXT, coord);
}
#define X_GLvop_AreProgramsResidentNV 1293
-GLboolean __indirect_glAreProgramsResidentNV(GLsizei n, const GLuint * ids, GLboolean * residences)
+GLboolean
+__indirect_glAreProgramsResidentNV(GLsizei n, const GLuint * ids,
+ GLboolean * residences)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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) {
@@ -7864,163 +9825,208 @@ GLboolean __indirect_glAreProgramsResidentNV(GLsizei n, const GLuint * ids, GLbo
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));
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return retval;
}
#define X_GLrop_ExecuteProgramNV 4181
-void __indirect_glExecuteProgramNV(GLenum target, GLuint id, const GLfloat * params)
+void
+__indirect_glExecuteProgramNV(GLenum target, GLuint id,
+ const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glGetProgramParameterdvNV(GLenum target, GLuint index,
+ GLenum pname, GLdouble * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetProgramParameterfvNV 1296
-void __indirect_glGetProgramParameterfvNV(GLenum target, GLuint index, GLenum pname, GLfloat * params)
+void
+__indirect_glGetProgramParameterfvNV(GLenum target, GLuint index,
+ GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetProgramStringNV 1299
-void __indirect_glGetProgramStringNV(GLuint id, GLenum pname, GLubyte * program)
+void
+__indirect_glGetProgramStringNV(GLuint id, GLenum pname, GLubyte *program)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetProgramivNV 1298
-void __indirect_glGetProgramivNV(GLuint id, GLenum pname, GLint * params)
+void
+__indirect_glGetProgramivNV(GLuint id, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetTrackMatrixivNV 1300
-void __indirect_glGetTrackMatrixivNV(GLenum target, GLuint address, GLenum pname, GLint * params)
+void
+__indirect_glGetTrackMatrixivNV(GLenum target, GLuint address, GLenum pname,
+ GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetVertexAttribdvNV 1301
-void __indirect_glGetVertexAttribdvNV(GLuint index, GLenum pname, GLdouble * params)
+void
+__indirect_glGetVertexAttribdvNV(GLuint index, GLenum pname,
+ GLdouble * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetVertexAttribfvNV 1302
-void __indirect_glGetVertexAttribfvNV(GLuint index, GLenum pname, GLfloat * params)
+void
+__indirect_glGetVertexAttribfvNV(GLuint index, GLenum pname, GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetVertexAttribivNV 1303
-void __indirect_glGetVertexAttribivNV(GLuint index, GLenum pname, GLint * params)
+void
+__indirect_glGetVertexAttribivNV(GLuint index, GLenum pname, GLint * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLrop_LoadProgramNV 4183
-void __indirect_glLoadProgramNV(GLenum target, GLuint id, GLsizei len, const GLubyte * program)
+void
+__indirect_glLoadProgramNV(GLenum target, GLuint id, GLsizei len,
+ const GLubyte *program)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 16 + safe_pad(len);
if (0 + safe_pad(len) < 0) {
__glXSetError(gc, GL_INVALID_VALUE);
@@ -8031,20 +10037,24 @@ void __indirect_glLoadProgramNV(GLenum target, GLuint id, GLsizei len, const GLu
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); }
+ 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)
+void
+__indirect_glProgramParameters4dvNV(GLenum target, GLuint index, GLsizei num,
+ const GLdouble * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8055,20 +10065,25 @@ void __indirect_glProgramParameters4dvNV(GLenum target, GLuint index, GLsizei nu
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); }
+ 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)
+void
+__indirect_glProgramParameters4fvNV(GLenum target, GLuint index, GLsizei num,
+ const GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8079,20 +10094,24 @@ void __indirect_glProgramParameters4fvNV(GLenum target, GLuint index, GLsizei nu
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); }
+ 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)
+void
+__indirect_glRequestResidentProgramsNV(GLsizei n, const GLuint * ids)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8103,365 +10122,455 @@ void __indirect_glRequestResidentProgramsNV(GLsizei n, const GLuint * ids)
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); }
+ 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)
+void
+__indirect_glTrackMatrixNV(GLenum target, GLuint address, GLenum matrix,
+ GLenum transform)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1dNV(GLuint index, GLdouble x)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1dvNV(GLuint index, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1fNV(GLuint index, GLfloat x)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1fvNV(GLuint index, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1sNV(GLuint index, GLshort x)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib1svNV(GLuint index, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2dNV(GLuint index, GLdouble x, GLdouble y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2dvNV(GLuint index, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2fNV(GLuint index, GLfloat x, GLfloat y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2fvNV(GLuint index, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2sNV(GLuint index, GLshort x, GLshort y)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib2svNV(GLuint index, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3dNV(GLuint index, GLdouble x, GLdouble y,
+ GLdouble z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3dvNV(GLuint index, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3fvNV(GLuint index, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3sNV(GLuint index, GLshort x, GLshort y, GLshort z)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib3svNV(GLuint index, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4dNV(GLuint index, GLdouble x, GLdouble y,
+ GLdouble z, GLdouble w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4dvNV(GLuint index, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z,
+ GLfloat w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4fvNV(GLuint index, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4sNV(GLuint index, GLshort x, GLshort y, GLshort z,
+ GLshort w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4svNV(GLuint index, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4ubNV(GLuint index, GLubyte x, GLubyte y, GLubyte z,
+ GLubyte w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttrib4ubvNV(GLuint index, const GLubyte *v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glVertexAttribs1dvNV(GLuint index, GLsizei n, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8472,19 +10581,22 @@ void __indirect_glVertexAttribs1dvNV(GLuint index, GLsizei n, const GLdouble * v
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); }
+ 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)
+void
+__indirect_glVertexAttribs1fvNV(GLuint index, GLsizei n, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8495,19 +10607,22 @@ void __indirect_glVertexAttribs1fvNV(GLuint index, GLsizei n, const GLfloat * v)
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); }
+ 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)
+void
+__indirect_glVertexAttribs1svNV(GLuint index, GLsizei n, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8518,19 +10633,22 @@ void __indirect_glVertexAttribs1svNV(GLuint index, GLsizei n, const GLshort * v)
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); }
+ 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)
+void
+__indirect_glVertexAttribs2dvNV(GLuint index, GLsizei n, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8541,19 +10659,22 @@ void __indirect_glVertexAttribs2dvNV(GLuint index, GLsizei n, const GLdouble * v
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); }
+ 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)
+void
+__indirect_glVertexAttribs2fvNV(GLuint index, GLsizei n, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8564,19 +10685,22 @@ void __indirect_glVertexAttribs2fvNV(GLuint index, GLsizei n, const GLfloat * v)
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); }
+ 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)
+void
+__indirect_glVertexAttribs2svNV(GLuint index, GLsizei n, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8587,19 +10711,22 @@ void __indirect_glVertexAttribs2svNV(GLuint index, GLsizei n, const GLshort * v)
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); }
+ 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)
+void
+__indirect_glVertexAttribs3dvNV(GLuint index, GLsizei n, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8610,19 +10737,22 @@ void __indirect_glVertexAttribs3dvNV(GLuint index, GLsizei n, const GLdouble * v
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); }
+ 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)
+void
+__indirect_glVertexAttribs3fvNV(GLuint index, GLsizei n, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8633,19 +10763,22 @@ void __indirect_glVertexAttribs3fvNV(GLuint index, GLsizei n, const GLfloat * v)
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); }
+ 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)
+void
+__indirect_glVertexAttribs3svNV(GLuint index, GLsizei n, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8656,19 +10789,22 @@ void __indirect_glVertexAttribs3svNV(GLuint index, GLsizei n, const GLshort * v)
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); }
+ 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)
+void
+__indirect_glVertexAttribs4dvNV(GLuint index, GLsizei n, const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8679,19 +10815,22 @@ void __indirect_glVertexAttribs4dvNV(GLuint index, GLsizei n, const GLdouble * v
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); }
+ 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)
+void
+__indirect_glVertexAttribs4fvNV(GLuint index, GLsizei n, const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8702,19 +10841,22 @@ void __indirect_glVertexAttribs4fvNV(GLuint index, GLsizei n, const GLfloat * v)
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); }
+ 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)
+void
+__indirect_glVertexAttribs4svNV(GLuint index, GLsizei n, const GLshort * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8725,19 +10867,22 @@ void __indirect_glVertexAttribs4svNV(GLuint index, GLsizei n, const GLshort * v)
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); }
+ 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)
+void
+__indirect_glVertexAttribs4ubvNV(GLuint index, GLsizei n, const GLubyte *v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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);
@@ -8748,31 +10893,39 @@ void __indirect_glVertexAttribs4ubvNV(GLuint index, GLsizei n, const GLubyte * v
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); }
+ 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)
+void
+__indirect_glActiveStencilFaceEXT(GLenum face)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glGetProgramNamedParameterdvNV(GLuint id, GLsizei len,
+ const GLubyte *name,
+ GLdouble * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
@@ -8783,21 +10936,28 @@ void __indirect_glGetProgramNamedParameterdvNV(GLuint id, GLsizei len, const GLu
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);
+ 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();
+ UnlockDisplay(dpy);
+ SyncHandle();
}
return;
}
#define X_GLvop_GetProgramNamedParameterfvNV 1310
-void __indirect_glGetProgramNamedParameterfvNV(GLuint id, GLsizei len, const GLubyte * name, GLfloat * params)
+void
+__indirect_glGetProgramNamedParameterfvNV(GLuint id, GLsizei len,
+ const GLubyte *name,
+ GLfloat * params)
{
- struct glx_context * const gc = __glXGetCurrentContext();
- Display * const dpy = gc->currentDpy;
+ 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);
@@ -8808,20 +10968,27 @@ void __indirect_glGetProgramNamedParameterfvNV(GLuint id, GLsizei len, const GLu
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);
+ 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();
+ 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)
+void
+__indirect_glProgramNamedParameter4dNV(GLuint id, GLsizei len,
+ const GLubyte *name, GLdouble x,
+ GLdouble y, GLdouble z, GLdouble w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 44 + safe_pad(len);
if (0 + safe_pad(len) < 0) {
__glXSetError(gc, GL_INVALID_VALUE);
@@ -8832,23 +10999,28 @@ void __indirect_glProgramNamedParameter4dNV(GLuint id, GLsizei len, const GLubyt
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); }
+ 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)
+void
+__indirect_glProgramNamedParameter4dvNV(GLuint id, GLsizei len,
+ const GLubyte *name,
+ const GLdouble * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 44 + safe_pad(len);
if (0 + safe_pad(len) < 0) {
__glXSetError(gc, GL_INVALID_VALUE);
@@ -8859,20 +11031,25 @@ void __indirect_glProgramNamedParameter4dvNV(GLuint id, GLsizei len, const GLuby
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); }
+ 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)
+void
+__indirect_glProgramNamedParameter4fNV(GLuint id, GLsizei len,
+ const GLubyte *name, GLfloat x,
+ GLfloat y, GLfloat z, GLfloat w)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 28 + safe_pad(len);
if (0 + safe_pad(len) < 0) {
__glXSetError(gc, GL_INVALID_VALUE);
@@ -8883,23 +11060,28 @@ void __indirect_glProgramNamedParameter4fNV(GLuint id, GLsizei len, const GLubyt
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); }
+ 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)
+void
+__indirect_glProgramNamedParameter4fvNV(GLuint id, GLsizei len,
+ const GLubyte *name,
+ const GLfloat * v)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ struct glx_context *const gc = __glXGetCurrentContext();
const GLuint cmdlen = 28 + safe_pad(len);
if (0 + safe_pad(len) < 0) {
__glXSetError(gc, GL_INVALID_VALUE);
@@ -8910,94 +11092,104 @@ void __indirect_glProgramNamedParameter4fvNV(GLuint id, GLsizei len, const GLuby
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); }
+ 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)
+void
+__indirect_glBindFramebufferEXT(GLenum target, GLuint framebuffer)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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)
+void
+__indirect_glBindRenderbufferEXT(GLenum target, GLuint renderbuffer)
{
- struct glx_context * const gc = __glXGetCurrentContext();
+ 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); }
+ 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
+#ifdef GLX_SHARED_GLAPI
-static const struct proc_pair
-{
- const char *name;
- _glapi_proc proc;
+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 }
+ {
+ "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);
+ 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;
+ 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);
+ 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;
+ return (pair) ? pair->proc : NULL;
}
-#endif /* GLX_INDIRECT_RENDERING */
+#endif /* GLX_SHARED_GLAPI */
-# undef FASTCALL
-# undef NOINLINE
+#undef FASTCALL
+#undef NOINLINE
diff --git a/lib/mesa/src/glx/indirect.h b/lib/mesa/src/glx/indirect.h
index ef2cc5c59..f2f9ca919 100644
--- a/lib/mesa/src/glx/indirect.h
+++ b/lib/mesa/src/glx/indirect.h
@@ -714,7 +714,7 @@ extern _X_HIDDEN void __indirect_glProgramNamedParameter4fvNV(GLuint id, GLsizei
extern _X_HIDDEN void __indirect_glBindFramebufferEXT(GLenum target, GLuint framebuffer);
extern _X_HIDDEN void __indirect_glBindRenderbufferEXT(GLenum target, GLuint renderbuffer);
-#ifdef GLX_INDIRECT_RENDERING
+#ifdef GLX_SHARED_GLAPI
extern _X_HIDDEN void (*__indirect_get_proc_address(const char *name))(void);
#endif
diff --git a/lib/mesa/src/glx/indirect_size.c b/lib/mesa/src/glx/indirect_size.c
index d3f90d001..493d77443 100644
--- a/lib/mesa/src/glx/indirect_size.c
+++ b/lib/mesa/src/glx/indirect_size.c
@@ -30,338 +30,353 @@
#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(__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
+#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) \
+#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(GLX_USE_APPLEGL)
+#undef HAVE_ALIAS
+#endif
+#ifdef HAVE_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 )
+#define ALIAS(from,to) ALIAS2( from, __gl ## to ## _size )
#else
-# define ALIAS(from,to) \
+#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 )
+__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;
+ 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 )
+__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;
+ 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 )
+__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;
+ 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 )
+__glLightModelfv_size(GLenum e)
{
- switch( e ) {
- case GL_LIGHT_MODEL_LOCAL_VIEWER:
- case GL_LIGHT_MODEL_TWO_SIDE:
- case GL_LIGHT_MODEL_COLOR_CONTROL:
+ 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;
+ return 1;
+ case GL_LIGHT_MODEL_AMBIENT:
+ return 4;
+ default:
+ return 0;
}
}
_X_INTERNAL PURE FASTCALL GLint
-__glMaterialfv_size( GLenum e )
+__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;
+ 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 )
+__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:
+ 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_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_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_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:
/* case GL_TEXTURE_COMPARE_MODE_ARB:*/
- case GL_TEXTURE_COMPARE_FUNC:
+ 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;
+ 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 )
+__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:
+ 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;
+ return 1;
+ case GL_TEXTURE_ENV_COLOR:
+ return 4;
+ default:
+ return 0;
}
}
_X_INTERNAL PURE FASTCALL GLint
-__glTexGendv_size( GLenum e )
+__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;
+ 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 )
+__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;
+ 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 )
+__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;
+ 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 )
+__glColorTableParameterfv_size(GLenum e)
{
- switch( e ) {
- case GL_COLOR_TABLE_SCALE:
- case GL_COLOR_TABLE_BIAS:
- return 4;
- default: return 0;
+ 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 )
+__glConvolutionParameterfv_size(GLenum e)
{
- switch( e ) {
- case GL_CONVOLUTION_BORDER_MODE:
+ switch (e) {
+ case GL_CONVOLUTION_BORDER_MODE:
/* case GL_CONVOLUTION_BORDER_MODE_EXT:*/
- return 1;
- case GL_CONVOLUTION_FILTER_SCALE:
+ return 1;
+ case GL_CONVOLUTION_FILTER_SCALE:
/* case GL_CONVOLUTION_FILTER_SCALE_EXT:*/
- case GL_CONVOLUTION_FILTER_BIAS:
+ case GL_CONVOLUTION_FILTER_BIAS:
/* case GL_CONVOLUTION_FILTER_BIAS_EXT:*/
- case GL_CONVOLUTION_BORDER_COLOR:
+ case GL_CONVOLUTION_BORDER_COLOR:
/* case GL_CONVOLUTION_BORDER_COLOR_HP:*/
- return 4;
- default: return 0;
+ return 4;
+ default:
+ return 0;
}
}
_X_INTERNAL PURE FASTCALL GLint
-__glPointParameterfv_size( GLenum e )
+__glPointParameterfv_size(GLenum e)
{
- switch( e ) {
- case GL_POINT_SIZE_MIN:
+ 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:
/* case GL_POINT_SIZE_MAX_ARB:*/
/* case GL_POINT_SIZE_MAX_SGIS:*/
- case GL_POINT_FADE_THRESHOLD_SIZE:
+ 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_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;
+ 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
+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
index fec7ed393..6a3d14cc4 100644
--- a/lib/mesa/src/glx/indirect_size.h
+++ b/lib/mesa/src/glx/indirect_size.h
@@ -3,18 +3,18 @@
/*
* (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
diff --git a/lib/mesa/src/glx/tests/Makefile.am b/lib/mesa/src/glx/tests/Makefile.am
index a41759b86..bdc78c0d5 100644
--- a/lib/mesa/src/glx/tests/Makefile.am
+++ b/lib/mesa/src/glx/tests/Makefile.am
@@ -12,9 +12,8 @@ AM_CPPFLAGS = \
$(LIBDRM_CFLAGS) \
$(X11_INCLUDES)
-TESTS = glx-test dispatch-index-check
+TESTS = glx-test
check_PROGRAMS = glx-test
-EXTRA_DIST = dispatch-index-check
glx_test_SOURCES = \
clientinfo_unittest.cpp \
diff --git a/lib/mesa/src/glx/tests/Makefile.in b/lib/mesa/src/glx/tests/Makefile.in
index dc3fba68f..89593f49c 100644
--- a/lib/mesa/src/glx/tests/Makefile.in
+++ b/lib/mesa/src/glx/tests/Makefile.in
@@ -50,7 +50,7 @@ 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@TESTS = glx-test$(EXEEXT)
@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
@@ -170,8 +170,6 @@ 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@
@@ -202,6 +200,8 @@ DLLTOOL = @DLLTOOL@
DLOPEN_LIBS = @DLOPEN_LIBS@
DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
DRI2PROTO_LIBS = @DRI2PROTO_LIBS@
+DRI3PROTO_CFLAGS = @DRI3PROTO_CFLAGS@
+DRI3PROTO_LIBS = @DRI3PROTO_LIBS@
DRIGL_CFLAGS = @DRIGL_CFLAGS@
DRIGL_LIBS = @DRIGL_LIBS@
DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
@@ -214,11 +214,10 @@ ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGL_CFLAGS = @EGL_CFLAGS@
+EGL_CLIENT_APIS = @EGL_CLIENT_APIS@
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@
@@ -245,8 +244,6 @@ GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
GREP = @GREP@
HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@
-I915_CFLAGS = @I915_CFLAGS@
-I915_LIBS = @I915_LIBS@
INDENT = @INDENT@
INDENT_FLAGS = @INDENT_FLAGS@
INSTALL = @INSTALL@
@@ -254,40 +251,45 @@ INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTEL_CFLAGS = @INTEL_CFLAGS@
+INTEL_LIBS = @INTEL_LIBS@
LD = @LD@
LDFLAGS = @LDFLAGS@
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@
+LIBSENSORS_LDFLAGS = @LIBSENSORS_LDFLAGS@
+LIBSHA1_CFLAGS = @LIBSHA1_CFLAGS@
+LIBSHA1_LIBS = @LIBSHA1_LIBS@
LIBTOOL = @LIBTOOL@
-LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@
-LIBUNWIND_LIBS = @LIBUNWIND_LIBS@
LIB_DIR = @LIB_DIR@
LIB_EXT = @LIB_EXT@
LIPO = @LIPO@
+LLVM_BINDIR = @LLVM_BINDIR@
LLVM_CFLAGS = @LLVM_CFLAGS@
LLVM_CONFIG = @LLVM_CONFIG@
+LLVM_CPPFLAGS = @LLVM_CPPFLAGS@
LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
LLVM_LDFLAGS = @LLVM_LDFLAGS@
+LLVM_LIBDIR = @LLVM_LIBDIR@
LLVM_LIBS = @LLVM_LIBS@
+LLVM_VERSION = @LLVM_VERSION@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
+MESA_LLVM = @MESA_LLVM@
MKDIR_P = @MKDIR_P@
MSVC2013_COMPAT_CFLAGS = @MSVC2013_COMPAT_CFLAGS@
MSVC2013_COMPAT_CXXFLAGS = @MSVC2013_COMPAT_CXXFLAGS@
@@ -308,6 +310,8 @@ OMX_LIBS = @OMX_LIBS@
OMX_LIB_INSTALL_DIR = @OMX_LIB_INSTALL_DIR@
OPENCL_LIBNAME = @OPENCL_LIBNAME@
OPENCL_VERSION = @OPENCL_VERSION@
+OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
+OPENSSL_LIBS = @OPENSSL_LIBS@
OSMESA_LIB = @OSMESA_LIB@
OSMESA_LIB_DEPS = @OSMESA_LIB_DEPS@
OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
@@ -327,6 +331,8 @@ PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
POSIX_SHELL = @POSIX_SHELL@
+PRESENTPROTO_CFLAGS = @PRESENTPROTO_CFLAGS@
+PRESENTPROTO_LIBS = @PRESENTPROTO_LIBS@
PTHREADSTUBS_CFLAGS = @PTHREADSTUBS_CFLAGS@
PTHREADSTUBS_LIBS = @PTHREADSTUBS_LIBS@
PTHREAD_CC = @PTHREAD_CC@
@@ -342,6 +348,8 @@ SED = @SED@
SELINUX_CFLAGS = @SELINUX_CFLAGS@
SELINUX_LIBS = @SELINUX_LIBS@
SET_MAKE = @SET_MAKE@
+SHA1_CFLAGS = @SHA1_CFLAGS@
+SHA1_LIBS = @SHA1_LIBS@
SHELL = @SHELL@
SIMPENROSE_CFLAGS = @SIMPENROSE_CFLAGS@
SIMPENROSE_LIBS = @SIMPENROSE_LIBS@
@@ -350,8 +358,7 @@ STRIP = @STRIP@
SWR_AVX2_CXXFLAGS = @SWR_AVX2_CXXFLAGS@
SWR_AVX_CXXFLAGS = @SWR_AVX_CXXFLAGS@
SWR_CXX11_CXXFLAGS = @SWR_CXX11_CXXFLAGS@
-SWR_KNL_CXXFLAGS = @SWR_KNL_CXXFLAGS@
-SWR_SKX_CXXFLAGS = @SWR_SKX_CXXFLAGS@
+TIMESTAMP_CMD = @TIMESTAMP_CMD@
VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
VALGRIND_LIBS = @VALGRIND_LIBS@
VA_CFLAGS = @VA_CFLAGS@
@@ -359,12 +366,15 @@ 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@
+VG_LIB_DEPS = @VG_LIB_DEPS@
VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
VL_CFLAGS = @VL_CFLAGS@
@@ -372,7 +382,6 @@ VL_LIBS = @VL_LIBS@
VULKAN_ICD_INSTALL_DIR = @VULKAN_ICD_INSTALL_DIR@
WAYLAND_CFLAGS = @WAYLAND_CFLAGS@
WAYLAND_LIBS = @WAYLAND_LIBS@
-WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@
WAYLAND_SCANNER = @WAYLAND_SCANNER@
WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
@@ -394,10 +403,9 @@ XVMC_LIBS = @XVMC_LIBS@
XVMC_LIB_INSTALL_DIR = @XVMC_LIB_INSTALL_DIR@
XVMC_MAJOR = @XVMC_MAJOR@
XVMC_MINOR = @XVMC_MINOR@
+XXD = @XXD@
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@
@@ -471,7 +479,6 @@ top_srcdir = @top_srcdir@
@HAVE_SHARED_GLAPI_TRUE@ $(LIBDRM_CFLAGS) \
@HAVE_SHARED_GLAPI_TRUE@ $(X11_INCLUDES)
-@HAVE_SHARED_GLAPI_TRUE@EXTRA_DIST = dispatch-index-check
@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 \
diff --git a/lib/mesa/src/glx/tests/dispatch-index-check b/lib/mesa/src/glx/tests/dispatch-index-check
deleted file mode 100755
index d1d073134..000000000
--- a/lib/mesa/src/glx/tests/dispatch-index-check
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env bash
-set -e
-
-if [ -z "$srcdir" ]
-then
- srcdir=$(dirname "$0")
-fi
-
-# extract enum definition
-dispatch_list=$(sed '/__GLXdispatchIndex/,/__GLXdispatchIndex/!d' \
- "$srcdir"/../g_glxglvnddispatchindices.h)
-
-# extract values inside of enum
-dispatch_list=$(sed '1d;$d' <<< "$dispatch_list")
-
-# remove indentation
-dispatch_list=$(sed 's/^\s\+//' <<< "$dispatch_list")
-
-# extract function names
-dispatch_list=$(sed 's/DI_//;s/,//' <<< "$dispatch_list")
-
-# same for commented functions, we want to keep them sorted too
-dispatch_list=$(sed 's#// ##;s/ implemented by [a-z]\+//' <<< "$dispatch_list")
-
-# remove LAST_INDEX, as it will not be in alphabetical order
-dispatch_list=$(sed '/LAST_INDEX/d' <<< "$dispatch_list")
-
-sorted=$(LC_ALL=C sort <<< "$dispatch_list")
-
-test "$dispatch_list" = "$sorted"
diff --git a/lib/mesa/src/glx/windows/Makefile.am b/lib/mesa/src/glx/windows/Makefile.am
index 980698823..6de3cf226 100644
--- a/lib/mesa/src/glx/windows/Makefile.am
+++ b/lib/mesa/src/glx/windows/Makefile.am
@@ -24,8 +24,8 @@ libwindowsglx_la_CFLAGS = \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/glx \
-I$(top_srcdir)/src/mapi \
- -I$(top_srcdir)/src/mapi/glapi \
-I$(top_builddir)/src/mapi/glapi \
+ -I$(top_srcdir)/src/mapi/glapi \
$(VISIBILITY_CFLAGS) \
$(SHARED_GLAPI_CFLAGS) \
$(DEFINES) \
diff --git a/lib/mesa/src/glx/windows/Makefile.in b/lib/mesa/src/glx/windows/Makefile.in
index d0e7a88f4..dd6f0f4b6 100644
--- a/lib/mesa/src/glx/windows/Makefile.in
+++ b/lib/mesa/src/glx/windows/Makefile.in
@@ -169,8 +169,6 @@ 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@
@@ -201,6 +199,8 @@ DLLTOOL = @DLLTOOL@
DLOPEN_LIBS = @DLOPEN_LIBS@
DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
DRI2PROTO_LIBS = @DRI2PROTO_LIBS@
+DRI3PROTO_CFLAGS = @DRI3PROTO_CFLAGS@
+DRI3PROTO_LIBS = @DRI3PROTO_LIBS@
DRIGL_CFLAGS = @DRIGL_CFLAGS@
DRIGL_LIBS = @DRIGL_LIBS@
DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
@@ -213,11 +213,10 @@ ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGL_CFLAGS = @EGL_CFLAGS@
+EGL_CLIENT_APIS = @EGL_CLIENT_APIS@
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@
@@ -244,8 +243,6 @@ GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
GREP = @GREP@
HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@
-I915_CFLAGS = @I915_CFLAGS@
-I915_LIBS = @I915_LIBS@
INDENT = @INDENT@
INDENT_FLAGS = @INDENT_FLAGS@
INSTALL = @INSTALL@
@@ -253,40 +250,45 @@ INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTEL_CFLAGS = @INTEL_CFLAGS@
+INTEL_LIBS = @INTEL_LIBS@
LD = @LD@
LDFLAGS = @LDFLAGS@
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@
+LIBSENSORS_LDFLAGS = @LIBSENSORS_LDFLAGS@
+LIBSHA1_CFLAGS = @LIBSHA1_CFLAGS@
+LIBSHA1_LIBS = @LIBSHA1_LIBS@
LIBTOOL = @LIBTOOL@
-LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@
-LIBUNWIND_LIBS = @LIBUNWIND_LIBS@
LIB_DIR = @LIB_DIR@
LIB_EXT = @LIB_EXT@
LIPO = @LIPO@
+LLVM_BINDIR = @LLVM_BINDIR@
LLVM_CFLAGS = @LLVM_CFLAGS@
LLVM_CONFIG = @LLVM_CONFIG@
+LLVM_CPPFLAGS = @LLVM_CPPFLAGS@
LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
LLVM_LDFLAGS = @LLVM_LDFLAGS@
+LLVM_LIBDIR = @LLVM_LIBDIR@
LLVM_LIBS = @LLVM_LIBS@
+LLVM_VERSION = @LLVM_VERSION@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
+MESA_LLVM = @MESA_LLVM@
MKDIR_P = @MKDIR_P@
MSVC2013_COMPAT_CFLAGS = @MSVC2013_COMPAT_CFLAGS@
MSVC2013_COMPAT_CXXFLAGS = @MSVC2013_COMPAT_CXXFLAGS@
@@ -307,6 +309,8 @@ OMX_LIBS = @OMX_LIBS@
OMX_LIB_INSTALL_DIR = @OMX_LIB_INSTALL_DIR@
OPENCL_LIBNAME = @OPENCL_LIBNAME@
OPENCL_VERSION = @OPENCL_VERSION@
+OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
+OPENSSL_LIBS = @OPENSSL_LIBS@
OSMESA_LIB = @OSMESA_LIB@
OSMESA_LIB_DEPS = @OSMESA_LIB_DEPS@
OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
@@ -326,6 +330,8 @@ PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
POSIX_SHELL = @POSIX_SHELL@
+PRESENTPROTO_CFLAGS = @PRESENTPROTO_CFLAGS@
+PRESENTPROTO_LIBS = @PRESENTPROTO_LIBS@
PTHREADSTUBS_CFLAGS = @PTHREADSTUBS_CFLAGS@
PTHREADSTUBS_LIBS = @PTHREADSTUBS_LIBS@
PTHREAD_CC = @PTHREAD_CC@
@@ -341,6 +347,8 @@ SED = @SED@
SELINUX_CFLAGS = @SELINUX_CFLAGS@
SELINUX_LIBS = @SELINUX_LIBS@
SET_MAKE = @SET_MAKE@
+SHA1_CFLAGS = @SHA1_CFLAGS@
+SHA1_LIBS = @SHA1_LIBS@
SHELL = @SHELL@
SIMPENROSE_CFLAGS = @SIMPENROSE_CFLAGS@
SIMPENROSE_LIBS = @SIMPENROSE_LIBS@
@@ -349,8 +357,7 @@ STRIP = @STRIP@
SWR_AVX2_CXXFLAGS = @SWR_AVX2_CXXFLAGS@
SWR_AVX_CXXFLAGS = @SWR_AVX_CXXFLAGS@
SWR_CXX11_CXXFLAGS = @SWR_CXX11_CXXFLAGS@
-SWR_KNL_CXXFLAGS = @SWR_KNL_CXXFLAGS@
-SWR_SKX_CXXFLAGS = @SWR_SKX_CXXFLAGS@
+TIMESTAMP_CMD = @TIMESTAMP_CMD@
VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
VALGRIND_LIBS = @VALGRIND_LIBS@
VA_CFLAGS = @VA_CFLAGS@
@@ -358,12 +365,15 @@ 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@
+VG_LIB_DEPS = @VG_LIB_DEPS@
VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
VL_CFLAGS = @VL_CFLAGS@
@@ -371,7 +381,6 @@ VL_LIBS = @VL_LIBS@
VULKAN_ICD_INSTALL_DIR = @VULKAN_ICD_INSTALL_DIR@
WAYLAND_CFLAGS = @WAYLAND_CFLAGS@
WAYLAND_LIBS = @WAYLAND_LIBS@
-WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@
WAYLAND_SCANNER = @WAYLAND_SCANNER@
WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
@@ -393,10 +402,9 @@ XVMC_LIBS = @XVMC_LIBS@
XVMC_LIB_INSTALL_DIR = @XVMC_LIB_INSTALL_DIR@
XVMC_MAJOR = @XVMC_MAJOR@
XVMC_MINOR = @XVMC_MINOR@
+XXD = @XXD@
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@
@@ -485,6 +493,7 @@ libwindowsglx_la_CFLAGS = \
-I$(top_builddir)/src/mapi/glapi \
-I$(top_srcdir)/src/mapi/glapi \
$(VISIBILITY_CFLAGS) \
+ $(SHARED_GLAPI_CFLAGS) \
$(DEFINES) \
$(X11_INCLUDES)