mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
intel: allow packed prime buffers to be treated normally
v2:
- fix earlier rebase error breaking bisect
(loaderPriv -> loaderPrivate)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
34c55b5925
commit
e8568a0803
1 changed files with 5 additions and 1 deletions
|
|
@ -651,7 +651,11 @@ intel_create_image_from_fds(__DRIscreen *screen,
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
image = intel_allocate_image(__DRI_IMAGE_FORMAT_NONE, loaderPrivate);
|
if (f->nplanes == 1)
|
||||||
|
image = intel_allocate_image(f->planes[0].dri_format, loaderPrivate);
|
||||||
|
else
|
||||||
|
image = intel_allocate_image(__DRI_IMAGE_FORMAT_NONE, loaderPrivate);
|
||||||
|
|
||||||
if (image == NULL)
|
if (image == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue