Hi Corbin, Unfortunately it is not very straightforward yet.
All the python state tracker requires is two functions: one that creates a pipe_screen and another that creates a pipe_context. You can implement these by provifing your version of st_hardpipe_winsys.c, and linking against the "pyst" library. However, the python state tracker is headless (it does not know anything about X or any window system). So for integrating it with a DRI-based driver you need to include all the DRM/DDX glue code yourself... I can provide you skeleton code/SConscript that does the above. What I'd like to do in the future is to have the python state tracker dynamically loading egl_softpipe.so, egl_r300.so etc, so that there is no integration needed. But it will take a while until I find the time. Jose ________________________________________ From: Corbin Simpson [[email protected]] Sent: Saturday, April 04, 2009 9:00 To: mesa3d-dev Subject: [Mesa3d-dev] Python bindings and hardware pipes/winsys Could somebody show me the basic technique for getting the Python state tracker built with non-softpipe? I'd really like to use the surface_copy test but I'm somewhat stymied by SWIG. ~ C. ------------------------------------------------------------------------------ _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev ------------------------------------------------------------------------------ _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
