From: Kevin E. M. <ke...@pr...> - 2000-02-24 21:51:39
|
Hi Andy, I'm forwarding this bug report to the dri-devel list so that others can comment on it. Kevin Andreas Wolf writes: > Anyway, sorry for contacting you this way, but maybe you guys > can give us a hint on whether there is also a project on SourceForge to > report DRI Mesa related OpenGL problems like the one described below? > > Regards, > Andy > > Here is Carsten's attachement: > Hi, > > following problem exist since 3.9.17d and also in latest 3.9.18 snapshot: > > When running an OpenGL demo using /usr/X11R6/lib/libGL.so , we get following > error during XMakeCurrent(): > > X Error of failed request: GLXBadContext Major opcode > of failed request: 141 (GLX) Minor opcode of failed > request: 5 (X_GLXMakeCurrent) Serial number of failed request: 22 > Current serial number in output stream: 22 > > By debugging XFree86, we found that the reason for that is the change of a > macro in xc/programs/xserver/GL/mesa/include/GL/xmesa_xf86.h: > > 3.19.17c > #define GET_VISUAL_DEPTH(__v) __v->screen_depth > > 3.19.17d > #define GET_VISUAL_DEPTH(__v) __v->visinfo->nplanes > > > This causes a fail in XMesaCreateWindowBuffer2() , from > xc/programs/xserver/GL/mesa/src/X/xmesa1.c : > > line 1639: > #ifdef XFree86Server > if (GET_VISUAL_DEPTH(v) != ((XMesaDrawable)w)->bitsPerPixel) { > #else > XGetWindowAttributes( v->display, w, &attr ); > > if (GET_VISUAL_DEPTH(v) != attr.depth) { > #endif > if (getenv("MESA_DEBUG")) { > fprintf(stderr, "XMesaCreateWindowBuffer: depth mismatch between > visual and window!\n"); > } > return NULL; > } > > > GET_VISUAL_DEPTH(v) == 24 > ((XMesaDrawable)w)->bitsPerPixel == 32 > > > We double-checked this with a Permedia2 card and got the same result. > > Is this a bug or are we doing anything wrong? > > Thanks for your help > > Carsten Rohde > Software Design Engineer > DIAMOND MULTIMEDIA > E U R O P E A N D I V I S I O N > Voice +49 8151 266 402 > Fax +49 8151 266 430 > Email CarstenR@DiamondMM.com |