Re: [Mesa-dev] [PATCH 0/2] Turning swrast into DRI2 drivers

2014-04-21 Thread Giovanni Campagna
2014-04-15 19:19 GMT+02:00 Adam Jackson :
> On Sat, 2014-04-12 at 02:25 +0200, Giovanni Campagna wrote:
>> Hi everyone,
>>
>> Some time ago I sent patches to enable the swrast driver on
>> GBM/DRM, and I did them in the dumbest way possible (that is,
>> having GBM implement the dri-swrast interface), to make sure
>> it would work without kernel support.
>> This patch series is a little smarter, in that it creates
>> more than one KMS buffer and has llvmpipe render directly
>> into the KMS buffer, so we don't need to copy from the back
>> to the shadow (before the kernel copies from the shadow to
>> the front).
>
> Have you looked into making this work with -modesetting as the ddx
> driver, not just qxl?

This works on the DRM platform, not X11, so there is no DDX involved.
It was tested with the qxl and i915 (through LIBGL_ALWAYS_SOFTWARE)
kernel drivers (some time ago...)

Giovanni
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH 0/2] Turning swrast into DRI2 drivers

2014-04-21 Thread Giovanni Campagna
2014-04-14 22:37 GMT+02:00 Dave Airlie :
> On Sat, Apr 12, 2014 at 10:25 AM, Giovanni Campagna
>  wrote:
>> Hi everyone,
>>
>> Some time ago I sent patches to enable the swrast driver on
>> GBM/DRM, and I did them in the dumbest way possible (that is,
>> having GBM implement the dri-swrast interface), to make sure
>> it would work without kernel support.
>> This patch series is a little smarter, in that it creates
>> more than one KMS buffer and has llvmpipe render directly
>> into the KMS buffer, so we don't need to copy from the back
>> to the shadow (before the kernel copies from the shadow to
>> the front).
>>
>> For background, this is necessary to get mutter-wayland running
>> inside VMs such as gnome-continuous, which has a qxl DRM driver.
>> mutter-wayland only has a KMS/EGL rendering backend, and we
>> have no intention to add pixman or fbdev.
>> GNOME bug: https://bugzilla.gnome.org/show_bug.cgi?id=728059
>>
>> The older patches were 
>> http://lists.freedesktop.org/archives/mesa-dev/2014-March/055113.html
>> I can rebase if so is desired.
>
> I actually did something similiar that was qxl specific before,
> (qxl-dri2-driver in my repo, though it had some problems I can barely
> remember now), the only question I have is what does this produce?
> another swrast_dri.so? and will it have any affect on current
> scenarios?

The first patch (the one in the previous mail) only affects the
loader, not the driver, so it works with the current swrast_dri. This
set produces a swrast_dri2_dri.so, which is loaded only under the
drm+gbm+dri backend, so it does not affect drisw+x11 and
drisw+wayland.
Also, it's not qxl specific, as far i'm told, because it uses the dumb
ioctls, not the qxl gem. A qxl userspace driver with proper gem
buffersharing would allow us to use it for accelerating composition on
x11 too, but I'm not sure it's a real benefit, with wayland around the
corner.

Giovanni
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH 0/2] Turning swrast into DRI2 drivers

2014-04-15 Thread Adam Jackson
On Sat, 2014-04-12 at 02:25 +0200, Giovanni Campagna wrote:
> Hi everyone,
> 
> Some time ago I sent patches to enable the swrast driver on
> GBM/DRM, and I did them in the dumbest way possible (that is,
> having GBM implement the dri-swrast interface), to make sure
> it would work without kernel support.
> This patch series is a little smarter, in that it creates
> more than one KMS buffer and has llvmpipe render directly
> into the KMS buffer, so we don't need to copy from the back
> to the shadow (before the kernel copies from the shadow to
> the front).

Have you looked into making this work with -modesetting as the ddx
driver, not just qxl?

- ajax

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH 0/2] Turning swrast into DRI2 drivers

2014-04-14 Thread Dave Airlie
On Sat, Apr 12, 2014 at 10:25 AM, Giovanni Campagna
 wrote:
> Hi everyone,
>
> Some time ago I sent patches to enable the swrast driver on
> GBM/DRM, and I did them in the dumbest way possible (that is,
> having GBM implement the dri-swrast interface), to make sure
> it would work without kernel support.
> This patch series is a little smarter, in that it creates
> more than one KMS buffer and has llvmpipe render directly
> into the KMS buffer, so we don't need to copy from the back
> to the shadow (before the kernel copies from the shadow to
> the front).
>
> For background, this is necessary to get mutter-wayland running
> inside VMs such as gnome-continuous, which has a qxl DRM driver.
> mutter-wayland only has a KMS/EGL rendering backend, and we
> have no intention to add pixman or fbdev.
> GNOME bug: https://bugzilla.gnome.org/show_bug.cgi?id=728059
>
> The older patches were 
> http://lists.freedesktop.org/archives/mesa-dev/2014-March/055113.html
> I can rebase if so is desired.

I actually did something similiar that was qxl specific before,
(qxl-dri2-driver in my repo, though it had some problems I can barely
remember now), the only question I have is what does this produce?
another swrast_dri.so? and will it have any affect on current
scenarios?

Dave.
>
> ___
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH 0/2] Turning swrast into DRI2 drivers

2014-04-12 Thread Giovanni Campagna
Hi everyone,

Some time ago I sent patches to enable the swrast driver on
GBM/DRM, and I did them in the dumbest way possible (that is,
having GBM implement the dri-swrast interface), to make sure
it would work without kernel support.
This patch series is a little smarter, in that it creates
more than one KMS buffer and has llvmpipe render directly
into the KMS buffer, so we don't need to copy from the back
to the shadow (before the kernel copies from the shadow to
the front).

For background, this is necessary to get mutter-wayland running
inside VMs such as gnome-continuous, which has a qxl DRM driver.
mutter-wayland only has a KMS/EGL rendering backend, and we
have no intention to add pixman or fbdev.
GNOME bug: https://bugzilla.gnome.org/show_bug.cgi?id=728059

The older patches were 
http://lists.freedesktop.org/archives/mesa-dev/2014-March/055113.html
I can rebase if so is desired.

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev