[Mesa-dev] [PATCH 3/9] glx/dri3: Add additional check for gpu offloading case

Dave Airlie airlied at gmail.com
Tue May 5 17:35:05 PDT 2015


On 2 May 2015 at 20:15, Axel Davy <axel.davy at ens.fr> wrote:
> Checks blitImage is implemented.
> Initially having the __DRIimageExtension extension
> at version 9 at least meant blitImage was supported.
> However some implementations do advertise version >= 9
> without implementing it.
>
> Signed-off-by: Axel Davy <axel.davy at ens.fr>

Reviewed-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/glx/dri3_glx.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
> index 1ddc723..fa38513 100644
> --- a/src/glx/dri3_glx.c
> +++ b/src/glx/dri3_glx.c
> @@ -1985,6 +1985,11 @@ dri3_create_screen(int screen, struct glx_display * priv)
>        goto handle_error;
>     }
>
> +   if (psc->is_different_gpu && !psc->image->blitImage) {
> +      ErrorMessageF("Different GPU, but blitImage not implemented for this driver\n");
> +      goto handle_error;
> +   }
> +
>     if (!psc->is_different_gpu && (
>         !psc->texBuffer || psc->texBuffer->base.version < 2 ||
>         !psc->texBuffer->setTexBuffer2
> --
> 2.3.7
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list