Module: Mesa
Branch: main
Commit: 3701cb9439058e71c1981bd80c5a9e1383815b08
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3701cb9439058e71c1981bd80c5a9e1383815b08

Author: Lucas Stach <[email protected]>
Date:   Fri Nov 13 14:26:23 2020 +0100

gallium/dri: copy image use in dup_image

Don't lose the use flags when dup'ing an image.

Signed-off-by: Lucas Stach <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106>

---

 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;
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to