Brian Paul
ad58f0d9e0
make: Use C++ compiler to link stdc++ library.
...
glxinfo and glxgears run on swrast and softpipe without undefined symbol
errors.
2010-08-24 12:18:09 -07:00
Kristian Høgsberg
2542d8e0c2
glx: Move deref after NULL check
2010-08-04 12:51:26 -04:00
Kristian Høgsberg
e3a0e468bc
glx: Fix use after free in drisw error path
2010-08-04 08:57:02 -04:00
Kristian Høgsberg
e71c44cedd
glx: We no longer need screen extensions for drisw
...
https://bugs.freedesktop.org/show_bug.cgi?id=29177
2010-08-04 08:52:26 -04:00
Kristian Høgsberg
9da1c9da13
glx: dri2InvalidateBuffers() needs the X drawable XID not the GLX one
...
This never ceases to entertain.
2010-08-04 08:47:36 -04:00
Kristian Høgsberg
1f1928db00
glx: Drop _Xglobal_lock while we create and initialize glx display
2010-08-02 09:53:44 -04:00
Kristian Høgsberg
e3e25dee20
glx: Fix copy/paste bug in glXWaitX and glXWaitGL
...
https://bugs.freedesktop.org/show_bug.cgi?id=29304
2010-07-29 18:49:10 -04:00
Kristian Høgsberg
f485ee724d
glx: Compare old ctx against dummyCtx, not NULL
...
https://bugs.freedesktop.org/show_bug.cgi?id=29302
2010-07-29 18:49:10 -04:00
Kristian Høgsberg
cd601513f5
glx: Fix linked list deletion in __glXCloseDisplay()
...
I hate single linked lists.
2010-07-29 16:03:44 -04:00
Kristian Høgsberg
6849916170
glx: Split indirect and applegl implementations into different files
2010-07-28 16:45:25 -04:00
Kristian Høgsberg
c491e585e4
glx: Move bind and unbind to context vtable
2010-07-28 16:45:25 -04:00
Kristian Høgsberg
c356f5867f
glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types.
2010-07-28 16:45:25 -04:00
Kristian Høgsberg
66fc35cde9
glx: Rename __GLXscreenConfigs to struct glx_screen
...
Because double underscores in private type names is painful.
2010-07-28 16:42:00 -04:00
Kristian Høgsberg
38c51a7653
glx: Use _X_EXPORT instead of our own PUBLIC macro
...
We're an X client library, so we can use Xfuncproto.h.
2010-07-28 16:42:00 -04:00
Kristian Høgsberg
65d98e2577
glx: Rename glcontextmodes.[ch] to glxconfig.[ch]
2010-07-28 16:42:00 -04:00
Kristian Høgsberg
6ddf66e923
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.
2010-07-28 16:42:00 -04:00
Kristian Høgsberg
4f9f066485
glx: Delete unused glcontextmodes.c functions
2010-07-28 16:41:59 -04:00
Kristian Høgsberg
38765fe4c2
glx: Stop using glcore.h and glxint.h in glx
...
We'd like to get rid of these header files.
2010-07-28 16:41:59 -04:00
Carl Worth
db011c8141
Avoid a compiler warning about a potentially unused variable.
...
There is no assignment to the "ret" variable if X_DRI2SwapBuffers is
not defined. In this case, the earlier explicit "return 0" is likely
to be used, but the compiler can't be sure of that, (nor can I for
that matter).
We cover this case by explicitly initializing "ret" to 0.
2010-07-28 10:42:46 -07:00
Carl Worth
14a3d61ea3
Avoid compiler warning for unused glx_dpy variable.
...
My earlier attempt to eliminate this warning (c0ca2bfb2a ) was
invalid as it removed the variable declaration. Jerome correctly
reverted that (600c85efdb ) since the variable is used when
X_DRI2SwapBuffers is defined.
Here, instead of removing the declaration, we move it to inside the
correct #ifdef.
2010-07-28 10:33:27 -07:00
Kristian Høgsberg
5403ca79b2
glx: Remove function prototypes no longer necessary
2010-07-26 17:37:59 -04:00
Kristian Høgsberg
e4aa9440d9
glx: Drop debug fprintf that snug in with the previous commit
2010-07-26 16:06:05 -04:00
Kristian Høgsberg
2235b1c72d
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
2010-07-26 15:52:45 -04:00
Kristian Høgsberg
bc34aa6128
glx: Drop duplicate psc field in dri context struct
...
Same problem as fixed for drisw in 4d58b5b482 .
2010-07-26 15:18:56 -04:00
Kristian Høgsberg
4d58b5b482
glx: Drop duplicate psc field in drisw context struct
...
Causing a crash in drisw MakeCurrent.
2010-07-24 21:43:25 -04:00
Eric Anholt
af6a2aede6
glx: Fix another case of confusing driContext and dri2_context *
2010-07-23 20:58:12 -07:00
Eric Anholt
566373967a
glx: Correctly look up the dri2 context pointer for SetTexBuffer.
...
gc->driContext points at the second member of the dri2 context. The
dri2 context is just a subclass of the GLX context.
Fixes piglit tfp testcase.
2010-07-23 20:58:12 -07:00
Kristian Høgsberg
d77bb8e059
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.
2010-07-23 22:05:53 -04:00
Kristian Høgsberg
6739d52fdc
glx: Fix use after free case when destroying screens
2010-07-23 22:05:53 -04:00
Kristian Høgsberg
6393a33944
glx: zero out drawable structs after allocation
2010-07-23 22:05:53 -04:00
Kristian Høgsberg
6ec39db726
glx: Refactor and simplify context creation
...
This lets us better separate context creation between the different
backends.
2010-07-23 22:05:53 -04:00
Kristian Høgsberg
b5dedd7c3b
glx: Fix indirect screen initialization
...
https://bugs.freedesktop.org/show_bug.cgi?id=29225
2010-07-23 22:05:53 -04:00
Kristian Høgsberg
c796bb0cc3
glx: Move context destroy to context vtable
2010-07-23 22:05:52 -04:00
Eric Anholt
9a12a3925a
glx: Don't try to swap a front buffer if we don't have one.
...
Fixes glean glsl1 since 7b7845a076
2010-07-23 13:59:22 -07:00
Kristian Høgsberg
eeaab2047c
glx: Drop screen argument to GetGLXDRIDrawable
...
We'll just get it from the returned drawable when we need it.
2010-07-22 22:36:37 -04:00
Kristian Høgsberg
7b7845a076
glx: Move WaitGL, WaitX, UseXFont to context vtable functions
2010-07-22 22:24:00 -04:00
Kristian Høgsberg
31819830b6
glx: Allocate the __GLXcontext in the DRI drivers
2010-07-22 22:16:32 -04:00
Kristian Høgsberg
ab434f6b76
glx: Use _Xglobal_lock for protecting extension display list
...
Avoids double locking glXLock in the X wire to event handlers.
2010-07-22 21:11:20 -04:00
Kristian Høgsberg
7a66e54958
glx: Move last few dri_interface.h types out of glxclient.h and drop include
2010-07-21 22:17:24 -04:00
Kristian Høgsberg
f679640868
glx: Move __driContext field out of __GLXcontextRec
2010-07-21 22:17:24 -04:00
Jerome Glisse
600c85efdb
Revert "dri2: Remove an unused variable."
...
glx_info is used if X_DRI2SwapBuffers is defined
This reverts commit c0ca2bfb2a .
2010-07-21 17:40:37 -04:00
Carl Worth
c0ca2bfb2a
dri2: Remove an unused variable.
...
To quiet a compiler warning.
2010-07-21 13:17:05 -07:00
Kristian Høgsberg
c1cbdbfde0
glx: #ifdef DRI specific prototype
...
https://bugs.freedesktop.org/show_bug.cgi?id=29162
2010-07-20 07:43:50 -04:00
Michel Dänzer
bd3d2724f5
glx/dri2: Fix dri2CopySubBuffer() again.
...
Only refresh the fake front buffer if there is one, and only destroy the region
once.
Fixes X11 protocol errors reported by 'mcgreg' on IRC.
2010-07-20 12:21:17 +02:00
Kristian Høgsberg
a7292f2920
glx: Move DRI CopySubBuffer extension to DRI1 code
...
We do this in the X server for DRI2.
2010-07-19 22:45:51 -04:00
Kristian Høgsberg
bab13969d8
glx: Move driver_configs to DRI screen privates
2010-07-19 22:45:51 -04:00
Kristian Høgsberg
e3e8196c02
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.
2010-07-19 22:45:51 -04:00
Kristian Høgsberg
037755122e
glx: Don't use __glXInitialize() when we might be holding __glXLock()
2010-07-19 22:45:51 -04:00
Kristian Høgsberg
8d0228912b
glx: Workaround mismatch in signedness between extensions and protocol
...
The DRI2 protocol for ust, msc and sbc are unsigned but the extensions
talk about int64_t. Do a little dance to make the compiler shut up.
2010-07-19 22:45:50 -04:00
Kristian Høgsberg
271c3c3a90
glx: Move __DRIdrawable pointers to DRI drawable privates
2010-07-19 22:45:50 -04:00