mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
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-stable@lists.freedesktop.org> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
05ac39ac49
commit
c4ff6d00cd
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue