mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 09:10:12 +01:00
dri: check for dmabuf_import at top of dri2_from_dma_bufs
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472>
This commit is contained in:
parent
a7d8892f0e
commit
9362ae7ecd
1 changed files with 3 additions and 0 deletions
|
|
@ -1685,6 +1685,9 @@ dri2_from_dma_bufs(__DRIscreen *screen,
|
|||
__DRIimage *img;
|
||||
const struct dri2_format_mapping *map = dri2_get_mapping_by_fourcc(fourcc);
|
||||
|
||||
if (!dri_screen(screen)->dmabuf_import)
|
||||
return NULL;
|
||||
|
||||
unsigned err = __DRI_IMAGE_ERROR_SUCCESS;
|
||||
/* Allow a NULL error arg since many callers don't care. */
|
||||
unsigned unused_error;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue