From: Axel Davy Date: Thu, 30 Apr 2015 22:20:34 +0000 (+0200) Subject: glx/dri3: Add additional check for gpu offloading case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4ff6d00cd7dde4646ff96733f68d3ddbf540c2c;p=mesa.git glx/dri3: Add additional check for gpu offloading case Checks blitImage is implemented. Initially having the __DRIimageExtension extension at version 9 at least meant blitImage was supported. However some implementation do advertise version >= 9 without implementing it. CC: 10.5 Reviewed-by: Dave Airlie Reviewed-by: Daniel Stone Signed-off-by: Axel Davy --- diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index ff77a91b15f..dfb0093395f 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