From ee844b66605fed48fc61b8787b6a86cf1c4e94d7 Mon Sep 17 00:00:00 2001 From: Topi Pohjolainen Date: Wed, 17 Apr 2013 13:11:16 +0300 Subject: intel: set dri image dimensions even when creating out of primes Otherwise 'intel_set_texture_image_region()' won't have enough details to work with. Signed-off-by: Topi Pohjolainen Reviewed-by: Chad Versace Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/i965/intel_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 0738cf62f8f..3a3efc0f6cf 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -679,6 +679,8 @@ intel_create_image_from_fds(__DRIscreen *screen, image->strides[index] = strides[index]; } + intel_setup_image_from_dimensions(image); + return image; } -- cgit v1.2.3