From c4ff6d00cd7dde4646ff96733f68d3ddbf540c2c Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Fri, 1 May 2015 00:20:34 +0200 Subject: 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 --- src/glx/dri3_glx.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/glx') 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 -- cgit v1.2.3