[Mesa-dev] [PATCH 3/9] glx/dri3: Add additional check for gpu offloading case
Axel Davy
axel.davy at ens.fr
Sat May 2 03:15:51 PDT 2015
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>
---
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
More information about the mesa-dev
mailing list