summaryrefslogtreecommitdiff
path: root/glx
AgeCommit message (Collapse)AuthorFilesLines
2009-09-03glx: Add screen DestroyWindow wrapper to destroy the GLX drawable.Michel Dänzer2-0/+29
Fixes crashes exitting MacSlow's rgba-glx demo.
2009-07-14glx: switch to byte counting functionsPeter Hutterer2-3/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-06glx: damage is only used with DRIRALOVICH, Kristóf2-2/+1
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
2009-07-06glx: remove Xgl leftoverRALOVICH, Kristóf2-9/+0
GlxSetRenderTables was only used by the long gone Xgl. Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
2009-07-05dri2: Enable GLX_SGI_make_current_read when the DRI driver supports it.Eric Anholt1-0/+9
This matches idr's 82f150d73cc9a7d8eaf7241a51b03af05bcec159 for DRI1.
2009-06-24GLX: make function static.Dave Airlie1-1/+1
This function isn't called from anywhere else and I don't think it shuold be.
2009-06-24GLX: note the implicit flushes with ReadPixels in indirect contexts.Dave Airlie2-0/+2
This just notes the flush has occured when readpixels returns, and fixes the glean test.
2009-06-23glx: Clean up more thoroughly if the drawable of a current context goes away.Michel Dänzer1-1/+24
Fixes crash when restarting compiz, due to cl->currentContexts[x] being stale.
2009-06-11glx: fix open-coded linked list removal functionDave Airlie1-5/+11
OMG stab stab stab, YALL. removal function was made of crack, actually truncated the list from the one after the find point. However fixing this makes glean makecurrent fail with a GLX error.
2009-06-06GLX: Make sure the types match for ALIAS in indirect_reqsize.cJeremy Huddleston1-2/+2
(cherry picked from commit 31a20a573b867fb7f02da15425e3b92eccb82dec)
2009-06-02Remove some libXfont leftoversAdam Jackson2-2/+0
2009-05-29GLX: Purge glxint.h usageJeremy Huddleston2-3/+2
Change (__GLXvisualConfig *) to (void *) in ABI compat stubs. (cherry picked from commit b4adec886c65e49cfbd30d1e3a41b613f75ed3f5)
2009-05-29GLX: Purge some glxint.h usage in glxcmds.cJeremy Huddleston1-6/+16
This is related to d0b249f1c5df81f3941d638f9625fe1e16c31807 in the 1.4 branch and was ok'd by krh (cherry picked from commit e587436cf2e1237813c924699ff0662aea3034e1)
2009-05-19glx: Register names for the GLX resource types.Eamon Walsh1-0/+5
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
2009-05-14glx: If a destroyed window is bound to the current context, make it not current.Michel Dänzer1-0/+4
Avoids subsequent crashes due to stale pointers to the DrawableRec, see https://bugs.freedesktop.org/show_bug.cgi?id=21132#c15 and previous comments. Signed-off-by: Michel Dänzer <daenzer@vmware.com>
2009-04-27Fix obvious copypastaPierre Willenbrock1-2/+2
Reviewed-by: Ian Romanick <idr@freedesktop.org>
2009-04-24DRI2: Implement protocol for DRI2GetBuffersWithFormatIan Romanick1-7/+52
This change implements the protocol for DRI2GetBuffersWithFormat, but the bulk of the differences are the changes to the extension / driver interface to make this function work. The old CreateBuffers and DeleteBuffers routines are replaced with CreateBuffer and DeleteBuffer (both singular). This allows drivers to allocate buffers for a drawable one at a time. As a result, 3D drivers can now allocate the (fake) front-buffer for a window only when it is needed. Since 3D drivers only ask for the front-buffer on demand, the real front-buffer is always created. This allows CopyRegion impelemenations of SwapBuffers to continue working. As with previous version of this code, if the client asks for the front-buffer for a window, we instead give it the fake front-buffer. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kristian Høgsberg <krh@redhat.com>
2009-04-20DRI2: Add missing front-buffer flush callback.Ian Romanick1-0/+8
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-04-20Add newline to some LogMessage strings.Werner LEMBERG2-5/+7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-15DRI2: Don't leave empty entries in private->buffersIan Romanick1-8/+9
This should fix bug #21130. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-04-13glx: Fix drawable private leak on destroyKristian Høgsberg10-115/+67
When a drawable goes away, we don't destroy the GLX drawable in full, since it may be current for a context. This means that when the drawable is destroyed in full later, the backend doesn't get a chance to destroy resources associated with the drawable (the DRI2Drawable). With this patch, we destroy the GLX drawable in full when it goes away and then track down all contexts that reference it and NULL their pointers.
2009-04-10DRI2: Do not send the real front buffer of a window to the clientIan Romanick1-0/+10
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-04-09glx: Test the error value, not its address...Michel Dänzer1-1/+1
2009-04-08Use a #define instead of a magic numberIan Romanick1-2/+4
The number of buffers is likely to change in the future, so having this as a define is the right way to go. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-04-08Allow GLX sources to build against Mesa 7.4 sourcesIan Romanick1-1/+4
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-04-07Convert remaining GLX LookupIDByType() callsKristian Høgsberg2-7/+15
2009-04-07Add validGlxDrawable() and use dixLookupResourceByType().Kristian Høgsberg2-70/+76
Fixes deprecation warnings, and fixes a couple of GLX error codes for failing drawable lookups.
2009-04-07Don't stomp on dixLookupDrawable() return value in DoCreateGLXPixmap().Kristian Høgsberg1-1/+5
2009-04-07Make GLX context lookup use dixLookupResourceByType()Kristian Høgsberg1-55/+43
2009-04-02Support setTexBuffer2 in AIGLX.Kristian Høgsberg3-3/+16
Fixes broken GLX_tfp, specifically, lets compositors ignore un-defined alpha channel for pixmaps.
2009-02-17glx: Inialize best_score before calculating visual scoresIan Romanick1-1/+1
This bug was pointed out by Peter Åstrand. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-02-16glx: Add comments around some extension string weirdnessIan Romanick2-1/+9
2009-02-16dri2: support glXWaitGL & glXWaitX by copying fake front to front andAlan Hourihane4-11/+67
vice-versa.
2009-02-13glx: fix retval checks when failures occur for drawable creation.Alan Hourihane1-1/+9
2009-02-12Enable pbuffersIan Romanick2-1/+2
If a driver does not actually support pbuffer rendering, it can just not enable any pbuffer fbconfigs.
2009-02-10glx: Replace broken GLX visual setup with a fixed "all" mode.Eric Anholt2-157/+78
With trying to match depths so that you didn't end up with a depth 24 fbconfig for the 32-bit composite visual, I broke the alpha bits on the depth 24 X visual, which angered other applications. But in fixing that, the pickFBconfigs code for "minimal" also could end up breaking GLX visuals if the same FBconfig was chosen for more than one X visual. We have no reason to not expose as many visuals as possible, but the old "all" mode didn't match any existing X visuals to GLX visuals, so normal GL apps didn't work at all. Instead, replace it with a simple combination of the two modes: Create GLX visuals by picking unique FBconfigs with as many features as possible for each X visual in order. Then, for all remaining FBconfigs that are appropriate for display, add a corresponding X and GLX visual. This gets all applications (even ones that aren't smart enough to do FBconfigs) get all the options to get the visual configuration they want. The only potential downside is that the composite ARGB visual is unique and gets a nearly full-featured GLX visual (except that the root visual might have taken the tastiest FBconfig), which means that a dumb compositing manager could waste resources. Write compositing managers using FBconfigs instead, please.
2009-02-04Fix "warning: cast to pointer from integer of different size"Tomas Carnecky2-2/+2
Add parenthesis around the whole expression. Signed-off-by: Tomas Carnecky <tom@dbservice.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-02glx: Don't match fbconfigs to visuals with mismatched channel masks.Eric Anholt1-5/+11
This fixes at least one known bug, where the depth 32 visual would end up with a depth 24 fbconfig attached, angering compiz.
2009-02-01Prevent double unref of glxdrawablesPierre Willenbrock1-0/+4
Found by valgrind. Bug #18917.
2009-01-19Cygwin/X: Cygwin doesn't have RTLD_LOCALYaakov Selkowitz1-0/+7
RTLD_LOCAL is not defined on Cygwin Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-01-18Don't reuse PKG_CHECK_MODULES identifiersDan Nicholson1-0/+1
Using GL for the PKG_CHECK_MODULES identifier multiple times means only the first call will actually be used. Later calls will be skipped due to GL_CFLAGS and GL_LIBS already being set. This changes DRI to using a different identifier and DMX to just reusing GL_CFLAGS. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2009-01-15GLX: Avoid a crash when we have an uninitialized GL contextJon TURNEY1-0/+3
If the GL dispatch table pointer points to glapi_noop_table, (due to some kind of GL initialization failure), DoGetString(GL_VERSION) (for example as invoked by glxinfo) will crash as it tries to do atof() on the null pointer returned by the noop dispatch function Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2008-12-17Ensure symbols required by swrast_dri.so are visible.Paulo Cesar Pereira de Andrade2-5/+6
2008-12-14GLX: Changes resulting from changes to Mesa generator scripts / dataIan Romanick7-18/+28
Several recent Mesa commits (listed below) make modifications to the protocol generator data and scripts. This commit represents the changes to the generated files resulting from the previous changes. - 0f73302d24f4201813da2939742c5bcb6964b3b1 GLX: Fix protocol for glTexSubImage#D - 1709ab01ef24279c782e420568e9257b4b92b224 Return 0 as the request size when the pixels parameter is NULL - 63cca2ba10ce7dcc8481cfa4be3872dfc269dded GLX: Include glapi.h before glapitable.h This is the server-side part of the fix for bugzilla #11003.
2008-12-12Warning fix: Remove dead glXDisp{,Swap}_DrawArraysEXT definitions.Eric Anholt2-10/+0
Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Ian Romanick <ian.d.romanick@intel.com>
2008-12-12Warning fix (GL likes to call strings GLubyte * instead of char *).Eric Anholt1-1/+1
Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Ian Romanick <ian.d.romanick@intel.com>
2008-12-12Remove #define NEED_EVENTS and NEED_REPLIESPeter Hutterer16-16/+0
A grep on xorg/* revealed there's no consumer of this define. Quote Alan Coopersmith: "The consumer was in past versions of the headers now located in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h, all the event definitions were only available if NEED_EVENTS were defined, and all the reply definitions required NEED_REPLIES. Looks like Xproto.h dropped them by X11R6.3, which didn't have the #ifdef's anymore, so these are truly ancient now." Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-12-03Test for DRI2 extension in dri_internal.h and only enable AIGLX DRI2 if found.Kristian Høgsberg1-2/+2
2008-12-02Fix GLX after 180bad84774493d48f2793a6281d825560944863.Eric Anholt4-4/+5
Sigh.
2008-12-02Add visibility flags to XSERVER_CFLAGS.Paulo Cesar Pereira de Andrade1-1/+1
This is done to actually change DIX_CFLAGS, as not all "modules" use XORG_CFLAGS. Also export the symbols that are required by other modules after the change.