On Tuesday 22 February 2005 21:06, Ian Romanick wrote: > Alexander E. Patrakov wrote: > > 3) I couldn't start Xglx at 1024x768 with Mesa as of Sunday, Feb 20, 2005 > > with LIBGL_ALWAYS_INDIRECT=1 in the environment. The error is: > > > > X Error of failed request: BadLength (poly request too large or internal > > Xlib length error) > > Major opcode of failed request: 145 (GLX) > > Minor opcode of failed request: 1 (X_GLXRender) > > Serial number of failed request: 85 > > Current serial number in output stream: 86 > > It sounds like there may be a bug in the new GLX protocol code. Can you > generate a debug version of indirect.c and figure out which command > generates the error? To do this, you'll need to cd to src/mesa/glapi > and run the following command. After that, you'll have to rebuild Mesa > with 'linux-dri' or 'linux-dri-x86' or some such. > > python glX_proto_send.py -d -m proto > ../../glx/x11/indirect.c > > You'll need to use LD_PRELOAD to force the use of that libGL. With this > debug libGL, it will log a message before every GL command and do a > glFinish after. The last command logged is likely the one with the bug.
I have tried this and got no debugging output at all with Xglx besides the above-mentioned X error. The debugging library by itself works because glxgears now prints a lot of "Enter" and "Exit" debug statements. However, I reproduced the same X error with another (smaller and simpler) app, rendertest_glitz_glx, and got some possibly useful debugging output (pasted below). Enter glGetTexLevelParameteriv... Exit glGetTexLevelParameteriv. <repeated many times> Enter glGetTexLevelParameteriv... Exit glGetTexLevelParameteriv. Enter glHint... Exit glHint. Enter glDepthMask... Exit glDepthMask. Enter glPolygonMode... Exit glPolygonMode. Enter glShadeModel... Exit glShadeModel. Enter glColorMask... Exit glColorMask. Enter glGetTexLevelParameteriv... X Error of failed request: BadLength (poly request too large or internal Xlib length error) Major opcode of failed request: 145 (GLX) Minor opcode of failed request: 1 (X_GLXRender) Serial number of failed request: 85 Current serial number in output stream: 86 The "glitzinfo" program doesn't report any errors, and results in the same log except that it doesn't enter the glGetTexLevelParameteriv function after glColorMask (that's normal, it's the end of that program) and therefore generates no X errors. I could not reproduce this bug with non-glitz programs. -- Alexander E. Patrakov ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
