[Mesa-dev] [PATCH] intel: make sure to setup image dimension in image_from_planar setup

Abdiel Janulgue abdiel.janulgue at linux.intel.com
Mon Feb 4 03:30:06 PST 2013


Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=60212

Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
 src/mesa/drivers/dri/intel/intel_screen.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index c6346d8..defcd73 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -682,6 +682,7 @@ intel_from_planar(__DRIimage *parent, int plane, void *loaderPrivate)
     image->region->tiling = parent->region->tiling;
     image->region->screen = parent->region->screen;
     image->offset = offset;
+    intel_setup_image_from_dimensions(image);
 
     intel_region_get_tile_masks(image->region, &mask_x, &mask_y, false);
     if (offset & mask_x)
-- 
1.7.9.5



More information about the mesa-dev mailing list