intel: set dri image dimensions even when creating out of primes
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 17 Apr 2013 10:11:16 +0000 (13:11 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 2 Aug 2013 05:56:03 +0000 (08:56 +0300)
Otherwise 'intel_set_texture_image_region()' won't have enough
details to work with.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c

index 0738cf62f8f41351d193901aa2b3a35978e94521..3a3efc0f6cf3c2176534b103e279bf40135f3f46 100644 (file)
@@ -679,6 +679,8 @@ intel_create_image_from_fds(__DRIscreen *screen,
       image->strides[index] = strides[index];
    }
 
+   intel_setup_image_from_dimensions(image);
+
    return image;
 }