Module: Mesa Branch: master Commit: c4ff6d00cd7dde4646ff96733f68d3ddbf540c2c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4ff6d00cd7dde4646ff96733f68d3ddbf540c2c
Author: Axel Davy <axel.d...@ens.fr> Date: Fri May 1 00:20:34 2015 +0200 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 <mesa-sta...@lists.freedesktop.org> Reviewed-by: Dave Airlie <airl...@redhat.com> Reviewed-by: Daniel Stone <dani...@collabora.com> Signed-off-by: Axel Davy <axel.d...@ens.fr> --- 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 ff77a91..dfb0093 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 _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit