Xiang, Haihao wrote: > Hi, all > > > > I know, currently direct rendering to a GLXPixmap is not supported. I > wonder if an indirect rendering context is able to be made current with > a GLXPixmap when direct rendering is enabled. I think it is possible > according to the GLX spec.
Yes. > However progs/xdemos/glxpixmap will get a > GLXBadContext error if direct rendering is enabled. > > A gdb analysis reveals that some functions in dri_util.c will be called > if direct rendering is enabled, although the context is indirect. In > driCreateNewDrawable function, a resource id(draw) is passed to the hook > function dri_interface->createDrawable. On server side, this id is taken > as a RC_DRAWABLE, in fact it is a __glXDrawableRes. It looks as if > making an indirect context current with a GLXPixmap is not done when > direct rendering is enabled, right? > > Maybe somebody could give me some comments It sounds like you already know more about the problem than anyone else. I haven't looked at that code in a long time. Ian might have some comments, but he doesn't seem to be online lately. -Brian ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
