Hi all,

Sorry for the crossposing but if someone knows 
the answer to the following, could you please
cc me with the answer?

Is it possible to set up OpenGL using DGA to switch
video modes? I tried this and I get:

Video init (DGA): DGA found...
Video init (DGA): DGA Version 2.0
640x480 24 bits at 85.0Hz  score: 19360096.00
640x480 16 bits at 85.0Hz  score: 20000096.00
Selected mode: 16
Asked for: 640x480 16 bits
      Got: 640x480 16 bits at 85.008003Hz
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  128 (XFree86-DRI)
  Minor opcode of failed request:  7 ()
  Value in failed request:  0x3e
  Serial number of failed request:  35
  Current serial number in output stream:  35


The BadValue comes when I try making the GLX context
current..

dev is pointer from the XDGASetMode and dev->pixmap is valid
Xlib pixmap.

and the rest is called after the mode is set...

Xvisual = glXChooseVisual(__display, __screenNo, attrib);
__glxcontext = glXCreateContext(__display, Xvisual, NULL, True);
__glxpixmap = glXCreateGLXPixmap(__display, Xvisual, dev->pixmap);
glXMakeCurrent(__av3d_display, __glxpixmap, __glxcontext);

All the calls success until it gets to glXMakeCurrent where it
barfs with the "X Error of failed request"..

Anyone see anything wrong here? Is it even possible to 
use DGA to set up a glx rendering context?

When I use
glXCreateContext(__display, Xvisual, NULL, False);
ie. make it an indirect context then it at least works.. well,
I didn't get any output yet but at least it doesn't crash...

Thanks in advance,
Adam

PS. Please CC me all replies. I'm not subscribed to the
list...

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to