From: Lionel Landwerlin Date: Tue, 2 Jun 2020 08:52:35 +0000 (+0300) Subject: i965: don't forget to set screen on duped image X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e41e820648b1cb662cbe938c73d755331d48c6db;p=mesa.git i965: don't forget to set screen on duped image We'll start using this field more for querying image properties. Without it we run into a crash. Signed-off-by: Lionel Landwerlin Cc: Reviewed-by: Kenneth Graunke Part-of: --- diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 8f5e4102cb6..3d6551ec516 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -980,6 +980,7 @@ intel_dup_image(__DRIimage *orig_image, void *loaderPrivate) return NULL; brw_bo_reference(orig_image->bo); + image->screen = orig_image->screen; image->bo = orig_image->bo; image->internal_format = orig_image->internal_format; image->planar_format = orig_image->planar_format;