On Sun, Mar 14, 2010 at 12:25 PM, George Sapountzis
<gsapount...@gmail.com> wrote:
> Hi,
>
> I put some patches at
> http://cgit.freedesktop.org/~gsap7/mesa/log/?h=gallium-drisw that do
> the plumbing in order to build the swrast_dri wrapper around gallium
> instead of classic mesa. For reference, swrast_dri is the fallback
> driver loaded by libGL (with LIBGL_ALWAYS_SOFTWARE) and xserver. It
> must not link with libdrm, nor use any drm headers during building
> because it is also used on platforms without drm.
>
> The branch is to the point where glxinfo runs and needs some glue with
> __DRIswrastLoaderExtension in order to show something other than black
> windows. The problem is that there seems to be two places where to put
> the glue, either in st/.../dri_drawable.c or in
> ws/.../swrast_drm_api.c . Can someone more familiar with gallium take
> a look at the branch and provide hints ?
>

The timing of the first attempt was unfortunate because it was in the
middle of a re-factoring I had not realized it was happening. The good
thing is that after the changes by Chia-I and Keith, implementing
swrastg_dri.so is much simpler. I update the patches at the above
branch, gallium swrast_dri.so works now with the following caveats:

* stride: the driver and the loader compute the stride independently.
They usually agree, but when you start resizing and they finally
don't, you get a regular oblique image. If you run with valgrind, you
also get a regular message the size of the mismatch, at each PutImage.

* fences: i did not use any, are they needed for cell/llvmpipe ?

There are some patches (mostly one-liners) at the start of the branch
on other code, please take a look and object.

regards,
George.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to