From 3701cb9439058e71c1981bd80c5a9e1383815b08 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 13 Nov 2020 14:26:23 +0100 Subject: [PATCH] gallium/dri: copy image use in dup_image Don't lose the use flags when dup'ing an image. Signed-off-by: Lucas Stach Reviewed-by: Daniel Stone Part-of: --- src/gallium/frontends/dri/dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index 9999b31b022..08a9ed9693c 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -1326,6 +1326,7 @@ dri2_dup_image(__DRIimage *image, void *loaderPrivate) img->dri_format = image->dri_format; /* This should be 0 for sub images, but dup is also used for base images. */ img->dri_components = image->dri_components; + img->use = image->use; img->loader_private = loaderPrivate; img->sPriv = image->sPriv;