History log of /external/mesa3d/src/glx/glxcmds.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
027ce0c493a85c863df88b43f61aea34bcd4cd58 24-Jan-2012 Matt Turner <mattst88@gmail.com> Revert "Always build shared glapi"

This reverts commit adefee50d954151f76150af80207081ae3c247d9.

Shared glapi was never tested with --enable-xlib-glx and turns out
to cause a lot of problems.

Conflicts:

configure.ac
/external/mesa3d/src/glx/glxcmds.c
adefee50d954151f76150af80207081ae3c247d9 12-Jan-2012 Matt Turner <mattst88@gmail.com> Always build shared glapi

libglapi.so, libGL.so, libGLESv2.so, libGLESv1_CM.so must all
come from the same version of Mesa or bad things may happen.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Matt Turner <mattst88@gmail.com>
/external/mesa3d/src/glx/glxcmds.c
78aa71a3ce8a999d64f30ce4f6d3939eec198f16 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Connect glXCreateContextAttribsARB to glXGetProcAddress

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/glxcmds.c
588042a8ec4ea91a952c07a0768516fd590758f4 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Initial implementation of glXCreateContextAttribsARB

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/glxcmds.c
ed4a65c3cfdf88afba48860be34ce26f7c371869 08-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Propagate the glXIsDirect protocol error back to the application

If the server returned BadContext, the error would just get droped on
the floor.

Fixes the piglit test glx-import-context-single-process

NOTE: This is a candidate for the 7.11 branch, but it also requires
the previous patch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/glxcmds.c
a832aa5ba097253f53983e3f1186b71626d164ae 09-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Initialize share_xid in CreateContext

Previously the share_xid was only set in the glXImportContextEXT path,
and it was left set to None in all of the other create-context paths.

Fixes the piglit test glx-query-context-info-ext.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glx/glxcmds.c
4dbd13cb3f5aeff6ddc85fd091b4677369c19778 07-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Send DestroyContext protocol at the correct times

Send the DestroyContext protocol immediately when glXDestroyContext is
called, and never call it when glXFreeContextEXT is called. In both
cases, either destroy the client-side structures or, if the context is
current, set xid to None so that the client-side structures will be
destroyed later.

I believe this restores the behavior of the original SGI code. See
src/glx/x11 around commit 5df82c8. The spec doesn't say anything
about glXDestroyContext not really destroying imported contexts (it
acts like glXFreeContextEXT instead), but that's what the original
code did. Note that glXFreeContextEXT on a non-imported context does
not destroy it either.

Fixes the piglit test glx-free-context.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glx/glxcmds.c
3b9b42250ca9f0da6e979afc047d1c8524466076 07-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Don't segfault if glXGetContextIDEXT is pased a NULL context

Fixes the piglit test glx-get-context-id.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glx/glxcmds.c
5a849e864ea2db3b705ba301089ee2ec1fe78aa1 07-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Fix handling of property list received from the server in glXImportContextEXT

The primary problem was that the number of reply bytes read is clamped
to sizeof(propList), but the loop that processes the properties tries
to examine all of the properties sent by the server. If the server
sends 47,000 properties, we only read 3 but process all 47,000.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glx/glxcmds.c
7c2f1160c23970929a2846d210357447d07ff5f0 07-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Don't segfault if xcb_glx_is_direct_reply returns NULL

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glx/glxcmds.c
e975e18bebb54b20f00c568e7870932402b79f8f 19-Aug-2011 Brian Paul <brianp@vmware.com> glx: use a block to fix declarations after code warning
/external/mesa3d/src/glx/glxcmds.c
4df137691ee29bb812347fa2c5f19095243ede22 06-May-2011 Jesse Barnes <jbarnes@virtuousgeek.org> GLX/DRI2: handle swap event swap count wrapping

Create a new GLX drawable struct to track client related info, and add a
wrap counter to it drawable and track it as we receive events. This
allows us to support the full 64 bits of the event structure we pass to
the client even though the server only gives us a 32 bit count.

Reviewed-by: Michel Dänzer <michel@daenzer.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
/external/mesa3d/src/glx/glxcmds.c
4833104718677caad0027d5e7539ca9bba389392 31-Mar-2011 Adam Jackson <ajax@redhat.com> glx: Verify that drawable creation on the client side actually worked

... and clean up if it didn't.

Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/glxcmds.c
9e2bc5d4b0385e374e06c0b26db266067a723bf3 02-Jun-2011 Adam Jackson <ajax@redhat.com> glx: Alias glXFreeContextEXT to glXDestroyContext

Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/glxcmds.c
559e4f8ebcb186b491d7d687ac43f22a62448fc1 15-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> glx: Allow a context-specific fallback for glXGetProcAddress

In applegl, GLX advertises the same extensions provided by OpenGL.framework
even if such extensions are not provided by glapi. This allows a client
to get access to such API.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
816b8acfe81d5e2d666eb926f669d6015df0bbac 13-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> glx: Remove check for gc->vtable->destroy

gc->vtable->destroy is always set and is used unconditionally
in other places, so don't bother checking for it first.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
e157f381f21a1d5307f64b6ec3cc1b26d4ddf576 08-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Remove apple_glx_get_proc_address

Now that we're using glapi, we don't need to special case this.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
1885cf27c9c4642a049c60a8236cb84735cb9eba 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Build darwin using applegl rather than indirect

This reverts portions of 6849916170c0275c13510251a7b217c20f2b993e that caused
the darwin config to fail to build due to missing implementations in that
commit.

See https://bugs.freedesktop.org/show_bug.cgi?id=29162

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
279e471750e3ee6a4841ebf16ef2d038e1c12077 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Rename GLXcontext

Fixes regression introduced by: c356f5867f2c1fad7155df538b9affa8dbdcf869

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
b7f0ed8444544b7fc927823a903db93ebf723cad 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Rename _gl_context_modes_find_visual to glx_config_find_visual

Fixes regression introduced by: 6ddf66e9230ee862ac341c4767cf6b3b2dd2552b

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
776a2a54473194e2f0926902276a1f880cded91f 01-Jun-2011 Adam Jackson <ajax@redhat.com> glx: Fix another case of using req outside of the display lock

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/glxcmds.c
fc48de4fabcf3a42a1cd7d447790afefc7d27af8 27-May-2011 Stéphane Marchesin <marcheu@chromium.org> glx: Fix glXGetFBConfigFromVisualSGIX.

We want to check for Success, otherwise it will fail even with the right visual.

NOTE: This is a candidate for the 7.10 branch.

Signed-off-by: Antoine Labour <piman@chromium.org>
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/glxcmds.c
3869be74afb184dbdf9d67fda3de3e3ac7e3db6c 29-Apr-2011 Adam Jackson <ajax@redhat.com> glx: More comment cleanup

Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/glxcmds.c
4d01bea808592aec74be2d2a4bbb6488b9299cda 15-Feb-2011 Eric Anholt <eric@anholt.net> glx: Don't do the implicit glFlush in SwapBuffers if it's the wrong drawable.

The GLX Spec says you only implicitly glFlush if the drawable being
swapped is the current context's drawable.
/external/mesa3d/src/glx/glxcmds.c
b5dc40710d0e5edffb9f673dfbf26df4d0043eef 19-Aug-2010 nobled <nobled@dreamwidth.org> glx: Put null check before use

'dpy' was being checked for null *after* it was already used once.

Also add a null check for psc, and drop gc's redundant initialization.
/external/mesa3d/src/glx/glxcmds.c
e8c7d7598fb48237508f566204c71ba8f74d544f 26-Dec-2010 Chia-I Wu <olv@lunarg.com> glapi: Fix OpenGL and OpenGL ES interop.

When --enable-shared-glapi is specified, libGL will share libglapi with
OpenGL ES instead of defining its own copy of glapi. This makes sure an
app will get only one copy of glapi in its address space.

The new option is disabled by default. When enabled, libGL and libglapi
must be built from the same source tree and distributed together. This
requirement comes from the fact that the dispatch offsets used by these
libraries are re-assigned whenever GLAPI XMLs are changed.

For GLX, indirect rendering for has_different_protocol() functions is
tricky. A has_different_protocol() function is assigned only one
dispatch offset, yet each entry point needs a different protocol opcode.
It cannot be supported by the shared glapi. The fix to this is to make
glXGetProcAddress handle such functions specially before calling
_glapi_get_proc_address.

Note that these files are automatically generated/re-generated

src/glx/indirect.c
src/glx/indirect.h
src/mapi/glapi/glapi_mapi_tmp.h
/external/mesa3d/src/glx/glxcmds.c
16887d042a917fa4773e4d853f50051b54e9948c 27-Aug-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop broken drawable garbage collection

Doesn't work for pixmaps, was looking up the GLX XID and was never thread
safe. Instead, just destroy the client side structures when the
drawable is no long current for a context.
/external/mesa3d/src/glx/glxcmds.c
3ea3f5e0a542cfd9f9a3433515fd27e0a5d1b1ac 07-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Set an all NULL vtable for dummyContext

This reverts 6a6e6d7b0a84e20f9754af02a575ae34081d310c and initializes
dummyContext with an all NULL vtable. The context vtable pointer is
supposed to always be non-NULL, but the vtable entries can be NULL.
/external/mesa3d/src/glx/glxcmds.c
57d3f71132a59315d47c42a110228a523f9ea23d 07-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix compilation with out xf86vidmode
/external/mesa3d/src/glx/glxcmds.c
6a6e6d7b0a84e20f9754af02a575ae34081d310c 07-Sep-2010 Michel Dänzer <daenzer@vmware.com> Fix crashes when some GLX API entrypoints are called with no current context.

I was hitting this with gliv.

The GLX spec explicitly mentions that glXWaitX, glXWaitGL and glXUseXFont calls
are ignored when there's no current context. Not sure what if anything the
GLX_EXT_texture_from_pixmap spec says about this, but I think ignoring the
calls makes more sense than crashing there as well. :)
/external/mesa3d/src/glx/glxcmds.c
2b9dac397bd97909876bbda8532e2cbce9d8a77f 21-Apr-2010 Jon TURNEY <jon.turney@dronecode.org.uk> Make XF86VIDMODE extension optional

Code in glx/glxcmds.c which uses the XF86VIDMODE extension is already guarded. Also use
that guard to control inclusion of the xf86vmode.h header, and only enable that guard if the
XF86VIDMODE extension is found by pkgconfig.

This changes the behaviour on platforms which XF86VIDMODE exists, in that XF86VIDMODE used to
be mandatory, but is now optional.

Presumably other build systems are already arranging for -DXF86VIDMODE to be supplied to the
complier when glxcmds.c is compiled, so are not affected by this change

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
/external/mesa3d/src/glx/glxcmds.c
ae9487c29984addc96a6d617292370fbc3f8ff9a 09-Aug-2010 Jon TURNEY <jon.turney@dronecode.org.uk> Some fixes for GLX_INDIRECT_RENDERING only build

This fixes some of the build issues with GLX_INDIRECT_RENDERING but !GLX_DIRECT_RENDERING due to recent changes.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
/external/mesa3d/src/glx/glxcmds.c
e3e25dee2019b2c75acadeaf4358cd9a8d93db0b 30-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix copy/paste bug in glXWaitX and glXWaitGL

https://bugs.freedesktop.org/show_bug.cgi?id=29304
/external/mesa3d/src/glx/glxcmds.c
6849916170c0275c13510251a7b217c20f2b993e 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Split indirect and applegl implementations into different files
/external/mesa3d/src/glx/glxcmds.c
c491e585e43d48a2aeec96ccc4008da6c443fb42 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move bind and unbind to context vtable
/external/mesa3d/src/glx/glxcmds.c
c356f5867f2c1fad7155df538b9affa8dbdcf869 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types.
/external/mesa3d/src/glx/glxcmds.c
66fc35cde9ed68a09920ad6a28de794dd1d3aa8c 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename __GLXscreenConfigs to struct glx_screen

Because double underscores in private type names is painful.
/external/mesa3d/src/glx/glxcmds.c
38c51a76533a90cf2c9381c99247cfac45fe70eb 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Use _X_EXPORT instead of our own PUBLIC macro

We're an X client library, so we can use Xfuncproto.h.
/external/mesa3d/src/glx/glxcmds.c
65d98e25770487456eb3d7eb8ec3ec8272f170b1 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename glcontextmodes.[ch] to glxconfig.[ch]
/external/mesa3d/src/glx/glxcmds.c
6ddf66e9230ee862ac341c4767cf6b3b2dd2552b 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename __GLcontextModes to struct glx_config

With this rename, we use 'config' consitently to refer to GLX configurations
instead of the modes/configs/visual mess before.
/external/mesa3d/src/glx/glxcmds.c
e4aa9440d9a71a04e9122588191d0357cc5e0c18 26-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop debug fprintf that snug in with the previous commit
/external/mesa3d/src/glx/glxcmds.c
2235b1c72d79ec00a03c99219154e3f9103e692b 26-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Enable copy subbuffer patch when GLX_DIRECT_RENDERING is #defined

Depending on __DRI_COPY_SUB_BUFFER doesn't work when we no longer include
dri_interface.h.

https://bugs.freedesktop.org/show_bug.cgi?id=29264
/external/mesa3d/src/glx/glxcmds.c
d77bb8e059ecfed9b714301fc31b093c6026c7bc 24-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Don't destroy context with XID 0

We use XID 0 to indicate the context has already been destroyed, but it's
currently bound.
/external/mesa3d/src/glx/glxcmds.c
6ec39db726beead21d97bf64ddbe1f0b2d2d6ca1 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Refactor and simplify context creation

This lets us better separate context creation between the different
backends.
/external/mesa3d/src/glx/glxcmds.c
c796bb0cc3fde409545bff320540ddf5c029e513 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move context destroy to context vtable
/external/mesa3d/src/glx/glxcmds.c
eeaab2047cfce8a7445fd9f835e737682eb503ac 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop screen argument to GetGLXDRIDrawable

We'll just get it from the returned drawable when we need it.
/external/mesa3d/src/glx/glxcmds.c
7b7845a076c933e096ac511b4184141ba194449a 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move WaitGL, WaitX, UseXFont to context vtable functions
/external/mesa3d/src/glx/glxcmds.c
31819830b66a49f1b62e09090cc65aefc657aeb8 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Allocate the __GLXcontext in the DRI drivers
/external/mesa3d/src/glx/glxcmds.c
7a66e549583a3168f05acc7df1e872d218fd670d 21-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move last few dri_interface.h types out of glxclient.h and drop include
/external/mesa3d/src/glx/glxcmds.c
e3e8196c025bd344a59b4671e473c395a6ea426b 20-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move drawHash to display private

The XIDs are display wide so the natural location of the hash is here.
This way we don't have to lookup in each of the screen hashes.
/external/mesa3d/src/glx/glxcmds.c
271c3c3a90ccfd01da9d7ac7fa451518f4e6a27c 20-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move __DRIdrawable pointers to DRI drawable privates
/external/mesa3d/src/glx/glxcmds.c
22266c391fbe17603b15a83d4ccf5fa9455ccf8d 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Remove support for MESA_swap_frame_usage

The extension never worked, the implementation returns GLX_BAD_CONTEXT
when enabling the frame tracking.
/external/mesa3d/src/glx/glxcmds.c
089fc37c6fa158824279e08e3b378ced94d6f803 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move DRI1 specific extensions and code to DRI1 screen private
/external/mesa3d/src/glx/glxcmds.c
cb2a66fd0c095fe03be5aaf88c8d48f5867425d3 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop support for GLX_MESA_allocate_memory

Only r200 implemented it.
/external/mesa3d/src/glx/glxcmds.c
f972115d33e391499e049b83a1559959f2ca9f72 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Add screen privates for dri drivers and moved some fields there

GLXscreenConfigs is badly named and a dumping ground for a lot of stuff.
This patch creates private screen structs for the dri drivers and moves
some of their fields over there.
/external/mesa3d/src/glx/glxcmds.c
643b2af0203764cb9f0a5b9e082937ab3f243523 21-May-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Split tfp functions out to context vtable

This introduces a new per-context vtable, which lets us clean up all the
#ifdef's a bit and move the DRI2 specific implementation into dri2_glx.c.
/external/mesa3d/src/glx/glxcmds.c
db178af09d734f2f973d50de9ff90fe1cbb5e9c9 08-May-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Get GLX_SCREEN first in __glXQueryContextInfo()

And lookup the GLX screen for the context. Otherwise we'll end up
jumping through a NULL-pointer once we try to look up the visual
or config for the shared context.

https://bugs.freedesktop.org/show_bug.cgi?id=14245
/external/mesa3d/src/glx/glxcmds.c
a18702f067d060ca9d56e9fcd5d2cd1a5093177f 01-May-2010 Jeremy Huddleston <jeremyhu@apple.com> darwin: Fix build

This is a regression from e42d84eaba228d4d96a46d116c6ca24581e29439

https://bugs.freedesktop.org/show_bug.cgi?id=27929

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 4d63be67f320839d115987211d0d9b4297f6d17d)
/external/mesa3d/src/glx/glxcmds.c
e42d84eaba228d4d96a46d116c6ca24581e29439 28-Apr-2010 Jakob Bornecrantz <jakob@vmware.com> glx: Fix build
/external/mesa3d/src/glx/glxcmds.c
1fa7789e828d1005e2473fc7cd364bd45eb30843 28-Apr-2010 Brian Paul <brianp@vmware.com> Merge branch '7.8'

Conflicts:

src/glx/dri2_glx.c
src/glx/glx_pbuffer.c
163901bc7f89dc3a5c65d66b960f18dd561631c1 02-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> darwin: Use clientattrib

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
80b280db883edc9550484dba03bd5c124b6a9bf9 02-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Change ifdefs for DRI to be DRI && !APPLE

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
ad503c41557606d15b0420c824369456f6d20a8f 01-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Initial import of libGL for OSX from AppleSGLX svn repository.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
394c25133e756e9d9580b65e0f1af7d67155e0f7 09-Apr-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix config chooser logic for 'mask' matching

When matching attributes using the 'mask' matching criteria, the spec
says that

"Only GLXFBConfigs for which the set bits of attribute include all
the bits that are set in the requested value are
considered. (Additional bits might be set in the attribute)."

The current test returns true if the two bit masks have bits in
common, specifically it matches even if the requested value has bits
set that are not set in the fbconfig attribute. For example, an
application asking for

GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_PBUFFER_BIT,

as glxpbdemo does, will match fbconfigs that don't support pbuffer
rendering, as long as they support pixmap rendering.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/glxcmds.c
edb5253dfa0751e451dca7c9a494be4609390545 09-Apr-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix config chooser logic for 'mask' matching

When matching attributes using the 'mask' matching criteria, the spec
says that

"Only GLXFBConfigs for which the set bits of attribute include all
the bits that are set in the requested value are
considered. (Additional bits might be set in the attribute)."

The current test returns true if the two bit masks have bits in
common, specifically it matches even if the requested value has bits
set that are not set in the fbconfig attribute. For example, an
application asking for

GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_PBUFFER_BIT,

as glxpbdemo does, will match fbconfigs that don't support pbuffer
rendering, as long as they support pixmap rendering.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/glxcmds.c
4fb2daf42c8171579cdc18605c5ceeb1963f8b31 05-Apr-2010 Ian Romanick <ian.d.romanick@intel.com> Merge branch '7.8'
67776f66c93abb44ee4d1432ba59458ce4fb28f7 02-Apr-2010 Vinson Lee <vlee@vmware.com> glx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.

Add ifdef guards around variables of types defined only for
GLX_DIRECT_RENDERING.
/external/mesa3d/src/glx/glxcmds.c
115203281cf791221f586f03c14cfe4e0a44dd7a 02-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> Revert accidental commits from the xquartz tree

This reverts commit 9aadc793f3db64cefa0b08f18abad424a659dacc.
This reverts commit 69ea4e7718efb60b6b0d795a355cebd6712ceac1.
This reverts commit dbe8b013936d977ec63d6607bfd2fc6772d29787.
This reverts commit 23215ef4d60a86d9f3b3fdc08e3fdadc59e98890.
This reverts commit 9495e3703062d1ddaf3161f4efc23f0b51284d9b.
This reverts commit 0594cf70883b64692ba617d85f4f9b4e636e5c2b.
This reverts commit 86a7978d37393ee34f876569ac06ffdb8d7289ae.
This reverts commit 437902ce978cde9a0e1aa260f12dc232a8501c42.
/external/mesa3d/src/glx/glxcmds.c
23215ef4d60a86d9f3b3fdc08e3fdadc59e98890 01-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Change ifdefs for DRI to be DRI && !APPLE

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
0594cf70883b64692ba617d85f4f9b4e636e5c2b 01-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Initial import of libGL for OSX from AppleSGLX svn repository.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glxcmds.c
16f568a1830ea17da82683f97e016cdc0aae0c65 01-Apr-2010 Vinson Lee <vlee@vmware.com> glx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.

driContext field for __GLXcontextRec struct is only defined if
GLX_DIRECT_RENDERING is set.
/external/mesa3d/src/glx/glxcmds.c
8f4f2a0c3625de2bb2b8e955afc23b3ce8c95f93 23-Mar-2010 Jesse Barnes <jbarnes@virtuousgeek.org> GLX/OML: honor OML semantics even if target, divisor and remainder are 0

This change passes a remainder of 1 to the server with the
DRI2SwapBuffers request, causing it to honor the OML semantics for the
swap rather than falling through to glXSwapBuffers behavior. The
remainder actually ends up ignored since the divisor is 0, but we need
to differentiate the OML and standard behavior somehow.

Reported-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
/external/mesa3d/src/glx/glxcmds.c
6b3145d6ee07a0fa9bb867e96ebe6cf716961bb9 05-Mar-2010 Jesse Barnes <jbarnes@virtuousgeek.org> GLX: remove debug prints from glXWaitForMscOML dispatch

Leftover from earlier commit.
/external/mesa3d/src/glx/glxcmds.c
251bf298bfddd06c6d6cd4b03ba9aadfc02e2895 19-Feb-2010 kleinerm <mario.kleiner@tuebingen.mpg.de> glx: Fix some typos in pointer checking for OML_sync_control entry points.

Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/glxcmds.c
7ccbeb41acd2f5c416005bd48c11996a054a869a 17-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> Merge commit '381d5e209815235911c4aab516037c868c8f695f'

This merges the patches from the series "[PATCH 00/14] More
client-side GLX house cleaning" that were posted to the mesa3d-dev
mailing list. See
http://marc.info/?l=mesa3d-dev&m=126582985214612&w=2

Patches 01 through 04 eliminate a bunch of annoying warnings that I
get when building Mesa.

Patch 05 fixes an inconsistency between the implementation of
glXSwapIntervalMESA and the spec. I chose to favor the code over the
spec in this case. This also eliminated a warning.

Patches 06 through 12 clean up the way that context creation is
performed on the client. When support for GLX_SGIX_fbconfig and the
related GLX 1.3 functions was added, I refactored a bunch
nuts-and-bolts of context creation to CreateContext. The refactor was
a good idea, I just didn't do it right.

Patches 13 and 14 update glxgears_fbconfig to use GLX 1.3 interfaces.
97ec6076f596a3820a9b7c4b7eae18bd98c6676b 15-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move GetGLXDRIDrawable() prototype to glxclient.h
/external/mesa3d/src/glx/glxcmds.c
d46d30f997c1718217545947ca4d80ec7d18e684 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Pass fbconfig ID or visual ID to CreateContext

Pass either the fbconfig ID or the visual ID, as appropriate, to
CreateContext. Now CreateContext does not derefernce fbconfig or vis
(which no longer exists as a parameter).
/external/mesa3d/src/glx/glxcmds.c
c3db1d621e1f7c73006ed76855d31b1034bc3aef 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Use the screen parameter everywhere instead of vis->screen, etc.
/external/mesa3d/src/glx/glxcmds.c
52cf8db428909156b062f17a9e6251a38178dec3 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Move work of converting a visual to an fbconfig

For the direct rendering case, the DRI createContext function wants an
fbconfig. When glXCreateContext is called, we have to convert the
visual to an fbconfig. This work was done in CreateContext, but it
makes more sense for it to be done in glXCreateContext.
/external/mesa3d/src/glx/glxcmds.c
bc7b2f0dc33753f6d6b55bd4058e82ddf0997967 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Re-indent CreateContext after the previous commit
/external/mesa3d/src/glx/glxcmds.c
2243029eeec9e31b92079ff0e8fafdc0315053d6 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Handle imported contexts outside of CreateContext

A long time ago I was a bit over-agressive in refactoring context
creation into a single function. The creation code for
glXImportContextEXT does not belong in CreateContext because it does
not use any GLX protocol. The big if-statement for the import case
routed around almost the entire function anyway.
/external/mesa3d/src/glx/glxcmds.c
7bcfb66000557a0ef32bdc6b31949a92f95a9ff6 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Pass screen number as parameter to CreateContext

Passing the screen parameter to CreateContext will simplify a couple
of changes that are coming.
/external/mesa3d/src/glx/glxcmds.c
8bffadbc83d19ecd8be8f0107d51463e36477666 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Pass opcode to CreateContext instead of use_glx_1_3 parameter

Passing the opcode directly instead of having CreateContext infer it
from the value of fbconfig and the use_glx_1_3 flag will simplify some
changes that are coming.
/external/mesa3d/src/glx/glxcmds.c
68fef184390da2fd67acfd99fba0a2dbe4a3b875 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Fix interval test in glXSwapIntervalMESA

It appears that, in spite of what the spec says, the interval
parameter to glXSwapIntervalMESA has been an unsigned int since
day-1. This made the 'if (interval < 0)' test useless. The test is
removed and the spec is updated to note that the interval is an
unsigned value.
/external/mesa3d/src/glx/glxcmds.c
1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Change type to eliminate 'comparison between signed and unsigned' warning
/external/mesa3d/src/glx/glxcmds.c
71a6fb15ceb6619d39029ff897daf2da4858b17e 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Add casts to eliminate 'comparison between signed and unsigned' warnings
/external/mesa3d/src/glx/glxcmds.c
26b2bee79d77b7a7b854d7300a10dce69e93d5cd 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Eliminate several 'unused variable' warnings in glxcmds.c.
/external/mesa3d/src/glx/glxcmds.c
2b4e009ed56b69b243f5cc88f490dcf8166cf729 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Use wrapper macro to detect direct rendering

The wrapper macro GC_IS_DIRECT is used in CreateContext and a couple
other places to eliminate the need for some of the '#ifdef
GLX_DIRECT_RENDERING' madness. There appear to be a *LOT* of places
in glxcmds.c where '#ifdef GLX_DIRECT_RENDERING' is missing.
/external/mesa3d/src/glx/glxcmds.c
6e8897ff9f90601ebf6eed500ad942c11b54d1f7 09-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> Retire miniglx and move the actual glx code up to src/glx
/external/mesa3d/src/glx/glxcmds.c