[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2013-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

Constantin Baranov  changed:

   What|Removed |Added

 CC||co...@mimas.ru

--- Comment #1 from Constantin Baranov  ---
I confirm this. Moreover, with LIBGL_ALWAYS_INDIRECT set
glXQueryDrawable(GLX_WIDTH or GLX_HEIGHT) doesn't fail, but returns zero size.
Calling e.g. glXSwapBuffers() with the same drawable works fine. So there is at
least some inconsistency in glx behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2013-09-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

Alexander Monakov  changed:

   What|Removed |Added

 CC||a...@nwnk.net

--- Comment #2 from Alexander Monakov  ---
Adam, you seem to have looked at this a couple of times.  Will it be fixed with
your pending GLX patches?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

Adrian Negreanu  changed:

   What|Removed |Added

 CC||adrian.m.negre...@intel.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

--- Comment #5 from ajax at nwnk dot net  ---
(In reply to comment #4)
> Would the same behaviour/bug be exposed by calling XGetGeometry on a
> drawable created with glXCreatePixmap ?

No, but you'd have a different problem there, which is that XGetGeometry on a
GLXPixmap will throw BadDrawable, since GetGeometry only operates on core
protocol drawables (ie, on the Pixmap you pass into glXCreatePixmap, not on the
GLXPixmap it returns).

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

--- Comment #4 from Adrian Negreanu  ---
Would the same behaviour/bug be exposed by calling XGetGeometry on a drawable
created with glXCreatePixmap ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-10-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

--- Comment #6 from Adrian Negreanu  ---
Created attachment 107229
  --> https://bugs.freedesktop.org/attachment.cgi?id=107229&action=edit
call SendMakeCurrent.

With the 0001-SendMakeCurrent, the error goes away, but causes an Xorg segfault
when glxgears exits.

(gdb) bt
#0  in ?? ()
#1  in glxClientCallback (list=, closure=,
data=) at xserver/glx/glxext.c:291
#2  in _CallCallbacks (pcbl=pcbl@entry=0x559a5d60 ,
call_data=call_data@entry=0x7fffd9f0) at xserver/dix/dixutils.c:718
#3  in CallCallbacks (call_data=0x7fffd9f0, pcbl=0x559a5d60
) at xserver/include/callback.h:83
#4  CloseDownClient (client=client@entry=0x560d5f10) at
xserver/dix/dispatch.c:3381
#5  in Dispatch () at xserver/dix/dispatch.c:444
#6  in dix_main (argc=4, argv=0x7fffdbe8, envp=) at
xserver/dix/main.c:296
#7  in __libc_start_main (main=0x555994e0 , argc=4,
argv=0x7fffdbe8, init=, fini=,
rtld_fini=, stack_end=0x7fffdbd8) at libc-start.c:287
#8  in _start ()

xserver/glx/glxext.c:291  looks like this
 286 case ClientStateGone:
 287 /* detach from all current contexts */
 288 for (c = glxAllContexts; c; c = next) {
 289 next = c->next;
 290 if (c->currentClient == pClient) {
>291 c->loseCurrent(c);
 292 lastGLContext = NULL;
 293 c->currentClient = NULL;
 294 __glXFreeContext(c);
 295 }
 296 }

but c->loseCurrent is NULL, as most of the other fields of `c', except a few,
like destroy and isDirect.

For dri2, loseCurrent should be  __glXDRIcontextLoseCurrent, set by
__glXDRIscreenCreateContext (by looking at xserver/glx/glxdri2.c)
But GLXscreen::createContext is called only when !isDirect
  by DoCreateContext  in  xserver/glx/glxcmds.c
  by __glXDisp_CreateContextAttribsARB  in  ./glx/createcontext.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-10-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

--- Comment #7 from Ian Romanick  ---
The server doesn't make the direct-rendering client current, so it gets angry
when it tries to make it un-current.  This is the reason we weren't sending it
the MakeCurrent in the first place.  There's probably some work that would need
to be done in the server to make this work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-10-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

Daniel Scharrer  changed:

   What|Removed |Added

 CC||dan...@constexpr.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

--- Comment #8 from Adam Nielsen  ---
FYI the latest Oculus Rift SDK release hits this bug now.  This means under
Linux, the Rift can only be used with alternatives like the nVidia
closed-source driver.

https://developer.oculusvr.com/forums/viewtopic.php?f=34&t=16664

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-11-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

Eero Tamminen  changed:

   What|Removed |Added

 CC||eero.t.tammi...@intel.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-11-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

Kevin Rogovin  changed:

   What|Removed |Added

   Priority|medium  |high
   Severity|normal  |major

--- Comment #9 from Kevin Rogovin  ---
Makes tools hard.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-11-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

Kaveh  changed:

   What|Removed |Added

   Assignee|mesa-dev@lists.freedesktop. |n...@linux.intel.com
   |org |

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-05-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

--- Comment #3 from ajax at nwnk dot net  ---
(In reply to comment #2)
> Adam, you seem to have looked at this a couple of times.  Will it be fixed
> with your pending GLX patches?

It's a Mesa bug, it's not sending MakeCurrent protocol for direct contexts,
which means the X server never knows it needs to promote the Window into a glx
window.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080

florian.w...@googlemail.com changed:

   What|Removed |Added

 CC||florian.w...@googlemail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev