diff options
author | Axel Davy <[email protected]> | 2015-05-01 00:20:34 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-05-11 19:31:44 +0200 |
commit | c4ff6d00cd7dde4646ff96733f68d3ddbf540c2c (patch) | |
tree | b6c51fcf8ab24d4c106d4283931912b73e68786d /src/glx | |
parent | 05ac39ac497ad7835cac7a161491282b5f69d711 (diff) |
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 <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/dri3_glx.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |