summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Pokorny <andreas.pokorny@canonical.com>2014-08-27 09:36:16 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2014-09-27 16:04:03 +0100
commit38c5650656f6829b4a47d6ebb384e2c4c208489f (patch)
tree8cd98cce99e9313bc1dbd3d463a0d3b9e9e3b504 /src
parentb4584d9eed4acd24cb4a323c2c64d98de1e847a6 (diff)
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 df341320c9be34c40b76e42510640120e0ebe0d3)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915/intel_screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c
index 4c9726c299f..159fb884bd9 100644
--- a/src/mesa/drivers/dri/i915/intel_screen.c
+++ b/src/mesa/drivers/dri/i915/intel_screen.c
@@ -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;