[Mesa-dev] [PATCH] egl/surfaceless: Use KMS swrast fallback
Emil Velikov
emil.l.velikov at gmail.com
Mon Oct 2 12:14:31 UTC 2017
Hi Gurchetan,
On 30 September 2017 at 00:57, gurchetansingh at chromium.org
<gurchetansingh at chromium.org> wrote:
> From: Gurchetan Singh <gurchetansingh at chromium.org>
>
> The kms_swrast extension is an actively developed software fallback,
> and platform_surfaceless can use it if there are no available
> hardware drivers.
> ---
> src/egl/drivers/dri2/platform_surfaceless.c | 77 ++++++++++++++++++-----------
> 1 file changed, 48 insertions(+), 29 deletions(-)
>
> diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c
> index 3c00ff44ab..518b74fcde 100644
> --- a/src/egl/drivers/dri2/platform_surfaceless.c
> +++ b/src/egl/drivers/dri2/platform_surfaceless.c
> @@ -267,6 +267,47 @@ static const __DRIextension *image_loader_extensions[] = {
> NULL,
> };
>
> +static int
> +surfaceless_probe_device(_EGLDisplay *dpy, int swrast)
Small suggestion, I don't feel too strongly about it.
Worth keeping the refactor and kms_swrast support as separate patches.
-Emil
More information about the mesa-dev
mailing list