summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch')
-rw-r--r--recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch b/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch
new file mode 100644
index 00000000..57251ed7
--- /dev/null
+++ b/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch
@@ -0,0 +1,30 @@
1From 3701cb9439058e71c1981bd80c5a9e1383815b08 Mon Sep 17 00:00:00 2001
2From: Lucas Stach <l.stach@pengutronix.de>
3Date: Fri, 13 Nov 2020 14:26:23 +0100
4Subject: [PATCH] gallium/dri: copy image use in dup_image
5
6Don't lose the use flags when dup'ing an image.
7
8Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
9Reviewed-by: Daniel Stone <daniels@collabora.com>
10Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106>
11Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/3701cb9439058e71c1981bd80c5a9e1383815b08]
12---
13 src/gallium/frontends/dri/dri2.c | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c
17index 9999b31b022..08a9ed9693c 100644
18--- a/src/gallium/frontends/dri/dri2.c
19+++ b/src/gallium/frontends/dri/dri2.c
20@@ -1326,6 +1326,7 @@ dri2_dup_image(__DRIimage *image, void *loaderPrivate)
21 img->dri_format = image->dri_format;
22 /* This should be 0 for sub images, but dup is also used for base images. */
23 img->dri_components = image->dri_components;
24+ img->use = image->use;
25 img->loader_private = loaderPrivate;
26 img->sPriv = image->sPriv;
27
28--
292.31.1
30