mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-07 05:30:25 +01:00
i915: Fix black buffers when importing prime fds
Width and Height of the imported image was never initialized from the
imported bo.
Cc: 10.2 10.3 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Andreas Pokorny <andreas.pokorny@canonical.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
(cherry picked from commit df341320c9)
This commit is contained in:
parent
ceebec140b
commit
f74bca93b4
1 changed files with 2 additions and 0 deletions
|
|
@ -616,6 +616,8 @@ intel_create_image_from_fds(__DRIscreen *screen,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
intel_setup_image_from_dimensions(image);
|
||||
|
||||
image->planar_format = f;
|
||||
for (i = 0; i < f->nplanes; i++) {
|
||||
index = f->planes[i].buffer_index;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue