[Mesa-dev] [Bug 29370] Crash when trying to enable 3D with KMS/DRI2

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 3 12:11:14 PDT 2010


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

--- Comment #3 from Mario Kleiner <mario.kleiner at tuebingen.mpg.de> 2010-08-03 12:11:14 PDT ---
(In reply to comment #1)
> This bug is the same I reported on the mailing list last week and it is related
> to bug 29181. Nevertheless, Kristian Høgsberg told me that it should not return
> NULL since there should always be a __GLXDRIdrawable in the hash table.
> 
> dri2_glx.c, line 508ff says the following:
> 
> /* Old servers don't send invalidate events */
> if (!pdp->invalidateAvailable)
>    dri2InvalidateBuffers(dpyPriv->dpy, pdraw->drawable);
> 
> I am not sure if xorg-server 1.8.2 sends invalidate events which might conflict
> with this function call - but then pdp->invalidateAvailable should not be
> false...

1.8.2 doesn't send invalidate events, so this call is correctly taken. Even if
it were taken erroneously, it wouldn't matter or cause these symptoms. Could
also be that something goes wrong inside


dri2InvalidateBuffers(Display *dpy, XID drawable)
{
   __GLXDRIdrawable *pdraw =
      dri2GetGlxDrawableFromXDrawableId(dpy, drawable);
   struct dri2_screen *psc = (struct dri2_screen *) pdraw->psc;
   struct dri2_drawable *pdp = (struct dri2_drawable *) pdraw;

when it calls dri2GetGlxDrawableFromXDrawableId() and that one returns an
invalid result.

However i tested mesa master with both 1.8.2 (no invalidate events) and master
(invalidate events) and it worked well. Didn't test with KWin though, so i
don't know.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list