From e8568a08030e0d79bd75dde57e65d01805eefe2a Mon Sep 17 00:00:00 2001 From: Topi Pohjolainen Date: Thu, 25 Apr 2013 14:33:09 +0300 Subject: [PATCH] intel: allow packed prime buffers to be treated normally v2: - fix earlier rebase error breaking bisect (loaderPriv -> loaderPrivate) Signed-off-by: Topi Pohjolainen Reviewed-by: Chad Versace Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/i965/intel_screen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index f913c429db5..ce7a51e5512 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -651,7 +651,11 @@ intel_create_image_from_fds(__DRIscreen *screen, if (f == NULL) return NULL; - image = intel_allocate_image(__DRI_IMAGE_FORMAT_NONE, loaderPrivate); + if (f->nplanes == 1) + image = intel_allocate_image(f->planes[0].dri_format, loaderPrivate); + else + image = intel_allocate_image(__DRI_IMAGE_FORMAT_NONE, loaderPrivate); + if (image == NULL) return NULL; -- 2.30.2