mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02: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>
This commit is contained in:
parent
53b614bfd3
commit
df341320c9
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