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:
committed by
Emil Velikov
parent
53b614bfd3
commit
df341320c9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user