History log of /external/mesa3d/src/glx/glx_pbuffer.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3ecd6c6abdf16b3639ee741dde234c85747dcaf2 05-Dec-2016 Emil Velikov <emil.velikov@collabora.com> glx: unify GLX_SGIX_pbuffer aliased declarations

No point in having an identical code in two places.

Not to mention that the Apple one incorrectly uses GLXDrawable as pbuf
type. This change is both API and ABI safe since the header uses the
correct GLXPbufferSGIX and both types are a typedef of the same
primitive XID.

Cc: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jeremy Sequoia <jeremyhu@apple.com>
/external/mesa3d/src/glx/glx_pbuffer.c
2e3f067458e4a70da91b27fab61ef3d292ded4cf 07-Jun-2016 Bernard Kilarski <bernard.r.kilarski@intel.com> glx: fix error code when there is no context bound

v2: change all related NULL checks to check against dummyContext
v3: really check for dummyContext *only* when ctx was from
__glXGetCurrentContext
v4: cover more checks, add dummyBuffer, dummyVtable (Emil)

Signed-off-by: Bernard Kilarski <bernard.r.kilarski@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: "11.2" <mesa-stable@lists.freedesktop.org>
/external/mesa3d/src/glx/glx_pbuffer.c
22a9e00aab66d3dd6890e9eaac3f429c0ddec17e 11-May-2016 Kyle Brenneman <kbrenneman@nvidia.com> glx: Implement the libglvnd interface.

With reference to the libglvnd branch:

https://cgit.freedesktop.org/mesa/mesa/log/?h=libglvnd

This is a squashed commit containing all of Kyle's commits, all but two
of Emil's commits (to follow), and a small fixup from myself to mark the
rest of the glX* functions as _GLX_PUBLIC so they are not exported when
building for libglvnd. I (ajax) squashed them together both for ease of
review, and because most of the changes are un-useful intermediate
states representing the evolution of glvnd's internal API.

Co-author: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/glx_pbuffer.c
2670d0f91d631c72d83e97d1ecc512a4a624f669 25-Apr-2014 Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> glx: Added missing null check in GetDrawableAttribute()

For GLX_BACK_BUFFER_AGE_EXT query added extra null check.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/glx_pbuffer.c
5a459a036e33683410bab4df431ed553bd0eeb66 12-May-2014 Jon TURNEY <jon.turney@dronecode.org.uk> Fix build of appleglx

Define GLX_USE_APPLEGL, as config/darwin used to, to turn on specific code to
use the applegl direct renderer

Convert src/glx/apple/Makefile to automake

Since the applegl libGL is now built by linking libappleglx into libGL, rather
than by linking selected files into a special libGL:

- Remove duplicate code in apple/glxreply.c and apple/apple_glx.c. This makes
apple/glxreply.c empty, so remove it

- Some indirect rendering code is already guarded by !GLX_USE_APPLEGL, but we
need to add those guards to indirect_glx.c, indirect_init.c (via it's
generator), render2.c and vertarr.c so they don't generate anything

Fix and update various includes

glapi_gentable.c (which is only used on darwin), should be included in shared
glapi as well, to provide _glapi_create_table_from_handle()

Note that neither swrast nor indirect is supported in the APPLEGL path at the
moment, which makes things more complex than they need to be. More untangling
is needed to allow that

v2: Correct apple/Makefile.am for srcdir != builddir

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/mesa3d/src/glx/glx_pbuffer.c
a69fabc76cc5a8d744fb184bfc5a4096ee596c13 24-Feb-2014 Adel Gadllah <adel.gadllah@gmail.com> dri3: Add GLX_EXT_buffer_age support

v2: Indent according to Mesa style, reuse sbc instead of making a new
swap_count field, and actually get a usable back before returning the
age of the back (fixing updated piglit tests). Changes by anholt.

Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
Reviewed-by: Robert Bragg <robert@sixbynine.org> (v1)
Reviewed-by: Adel Gadllah <adel.gadllah@gmail.com> (v2)
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glx/glx_pbuffer.c
b972e55684249d85d0e2790a8d713b8be9649188 24-Feb-2014 Adel Gadllah <adel.gadllah@gmail.com> glx_pbuffer: Refactor GetDrawableAttribute

Move the pdraw != NULL check out so that they don't
have to be duplicated.

Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glx/glx_pbuffer.c
e503609e6feb9373ec3bba4ff028a66f1517be30 07-Feb-2014 Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> glx: Add some missing null checks in glx_pbuffer.c

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/glx_pbuffer.c
d5aee174b88878e6d47dc1fadd3935f535fd85f0 09-Aug-2013 Ian Romanick <ian.d.romanick@intel.com> glx: Generate GLXBadDrawable when drawable is zero

Fixes piglit glx-query-drawable-GLXBadDrawable.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
/external/mesa3d/src/glx/glx_pbuffer.c
f816a9f5226c51c2fb403a8006c398414cfa2518 26-Feb-2013 Jon TURNEY <jon.turney@dronecode.org.uk> glx: Fix glXCreateWindow() when GLX_DIRECT_RENDERING is undefined

glXCreateWindow() and glXCreatePbuffer() always fail when built without
GLX_DIRECT_RENDERING defined since commit 48331047.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
/external/mesa3d/src/glx/glx_pbuffer.c
2b7a972e3f36bfcdc6fbe2b59d7ffdcde49c9405 04-Sep-2012 Matt Turner <mattst88@gmail.com> Don't cast the return value of malloc/realloc

This patch has been generated by the following Coccinelle semantic
patch:

// Don't cast the return value of malloc/realloc.
//
// Casting the return value of malloc/realloc only stands to hide
// errors.

@@
type T;
expression E1, E2;
@@
- (T)
(
_mesa_align_calloc(E1, E2)
|
_mesa_align_malloc(E1, E2)
|
calloc(E1, E2)
|
malloc(E1)
|
realloc(E1, E2)
)
/external/mesa3d/src/glx/glx_pbuffer.c
7c7b7b068b1d0dc8e14b87dab5dbd4108f874f74 05-Sep-2012 Matt Turner <mattst88@gmail.com> Remove Xcalloc/Xmalloc/Xfree calls

These calls allowed Xlib to use a custom memory allocator, but Xlib has
used the standard C library functions since at least its initial import
into git in 2003. It seems unlikely that it will grow a custom memory
allocator. The functions now just add extra overhead. Replacing them
will make future Coccinelle patches simpler.

This patch has been generated by the following Coccinelle semantic
patch:

// Remove Xcalloc/Xmalloc/Xfree calls

@@ expression E1, E2; @@
- Xcalloc (E1, E2)
+ calloc (E1, E2)

@@ expression E; @@
- Xmalloc (E)
+ malloc (E)

@@ expression E; @@
- Xfree (E)
+ free (E)

@@ expression E; @@
- XFree (E)
+ free (E)

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/glx_pbuffer.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/glx_pbuffer.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/glx_pbuffer.c
bb621cb61e0c6d7fcd06df5a77c75efe5c76926d 05-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Rename __GLcontextModes to struct glx_config

Fixes regression introduced by: 6ddf66e9230ee862ac341c4767cf6b3b2dd2552b

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/mesa3d/src/glx/glx_pbuffer.c
a95ec18549b677b5e9912ca9e2c92df5cfef3b4e 25-May-2011 Adam Jackson <ajax@redhat.com> glx: Don't refer to the request buffer outside of {L,Unl}ockDisplay

... because that's not a safe thing to do. The request buffer is shared
storage among all threads, and after UnlockDisplay the 'req' pointer may
point into someone else's request.

NOTE: This is a candidate for the 7.10 branch.

Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/glx_pbuffer.c
a3aecd190b7c411d399350f83ee663f8744e94ac 29-Apr-2011 Adam Jackson <ajax@redhat.com> glx: Remove some misleading comments

These functions have already been modified for direct rendering.

Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/glx/glx_pbuffer.c
6ae9e8cbabdc8a18a821ea3f716b18b3eb82a495 03-May-2011 Jesse Barnes <jbarnes@virtuousgeek.org> GLX: don't crash when indirect clients try to set an event mask

After sending the GLXChangeDrawableAttributes request, we also set a
local set of attributes on the DRI drawable. But in the indirect case
this array won't be present, so skip the setting in that case to avoid a
crash.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
/external/mesa3d/src/glx/glx_pbuffer.c
e27913f805acbb7d00f83ba625a8605576738a13 26-Jan-2011 Julien Cristau <jcristau@debian.org> glx: fix GLXChangeDrawableAttributesSGIX request

xGLXChangeDrawableAttributesSGIXReq follows the GLXVendorPrivate header
with a drawable, number of attributes, and list of (type, value)
attribute pairs. Don't forget to put the number of attributes in there.
I don't think this can ever have worked.

NOTE: This is a candidate for the 7.9 and 7.10 branches

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/glx_pbuffer.c
4324d6fdfbba17e66b476cf008713d26cac83ad1 23-Jan-2011 Julien Cristau <jcristau@debian.org> glx: fix request lengths

We were sending too long requests for GLXChangeDrawableAttributes,
GLXGetDrawableAttributes, GLXDestroyPixmap and GLXDestroyWindow.

NOTE: This is a candidate for the 7.9 and 7.10 branches

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/glx/glx_pbuffer.c
80e48ddcf6d5bdc1fc063f28b7af478dae330233 09-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix another use-after-free problem
/external/mesa3d/src/glx/glx_pbuffer.c
d8ab9aac54c3b6e4d97016172527d4b7c85b27a2 09-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Destroy pixmap after destroying glx and dri drawables

Now that we suppress BadDrawable from DRI2DestroyDrawable, this doesn't
matter, but we would get that error before when destroying pbuffers.
/external/mesa3d/src/glx/glx_pbuffer.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/glx_pbuffer.c
c356f5867f2c1fad7155df538b9affa8dbdcf869 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types.
/external/mesa3d/src/glx/glx_pbuffer.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/glx_pbuffer.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/glx_pbuffer.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/glx_pbuffer.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/glx_pbuffer.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/glx_pbuffer.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/glx_pbuffer.c
5c9e54f2ff2eb651b5bf594ac95d39ba5747c500 15-Jul-2010 Vinson Lee <vlee@vmware.com> glx: Move dereference and initialization to after NULL check.
/external/mesa3d/src/glx/glx_pbuffer.c
f8d81c31cee30821da3aab331a57f484f6a07a5d 14-Jul-2010 Nick Bowler <nbowler@draconx.ca> dri2: Track event mask in client code.

When direct rendering is being used, DRI2 BufferSwapComplete events are
sent unconditionally to clients, even if they haven't been requested.
This causes error messages to be printed by every freeglut application
of the form

freeglut (./gears): Unknown X event type: 104

and might confuse other clients.

This is a fixed up version of the patch by Jesse Barnes, which drops
BufferSwapComplete events if they are not requested by clients.

Fixes fdo bug 27962.

Signed-off-by: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
/external/mesa3d/src/glx/glx_pbuffer.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
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/glx_pbuffer.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/glx_pbuffer.c
5a43dbac687c63ea543035319e44ca7a0acf9ff9 09-Apr-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Support direct rendering pbuffers

We've supported indirect rendering pbuffers for a while, but not direct
rendering pbuffers. The way we do this is by creating a hidden pixmap
and wrap that in a GLX pbuffer. This only works when we have DRI2 on
the server, but if the server doesn't have DRI2, it won't expose configs
with pbuffer bits enabled.
/external/mesa3d/src/glx/glx_pbuffer.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/glx_pbuffer.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/glx_pbuffer.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/glx_pbuffer.c
5f40a7aed12500fd6792e2453f495555c3b5c54d 02-Mar-2010 Brian Paul <brianp@vmware.com> glx: replace assertion with conditional

See fd.o bug 26832.
/external/mesa3d/src/glx/glx_pbuffer.c
706fffbff59be0dc884e1938f1bdf731af1efa3e 28-Feb-2010 Vinson Lee <vlee@vmware.com> glx: Add assert to check input to memcpy.
/external/mesa3d/src/glx/glx_pbuffer.c
97ec6076f596a3820a9b7c4b7eae18bd98c6676b 15-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move GetGLXDRIDrawable() prototype to glxclient.h
/external/mesa3d/src/glx/glx_pbuffer.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/glx_pbuffer.c