diff options
author | Andreas Pokorny <[email protected]> | 2014-08-27 09:36:16 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-09-23 00:26:17 +0100 |
commit | df341320c9be34c40b76e42510640120e0ebe0d3 (patch) | |
tree | f7daac64a7e80c8e718d4654a387f6f3f87f9fb5 /src/mesa | |
parent | 53b614bfd3c12368347b2953121e815add68d90b (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 <[email protected]>
Signed-off-by: Andreas Pokorny <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_screen.c | 2 |
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 3aaa45f88bb..00d85805da0 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; |