Mesa (main): gallium/dri: Remove unused dri_drawable::drisw_surface

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon May 17 20:17:54 UTC 2021


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

Author: Adam Jackson <ajax at redhat.com>
Date:   Tue May 11 16:00:07 2021 -0400

gallium/dri: Remove unused dri_drawable::drisw_surface

Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10758>

---

 src/gallium/frontends/dri/dri_drawable.c | 2 --
 src/gallium/frontends/dri/dri_drawable.h | 3 ---
 2 files changed, 5 deletions(-)

diff --git a/src/gallium/frontends/dri/dri_drawable.c b/src/gallium/frontends/dri/dri_drawable.c
index 5ef0a2ca077..8a031cc3b48 100644
--- a/src/gallium/frontends/dri/dri_drawable.c
+++ b/src/gallium/frontends/dri/dri_drawable.c
@@ -196,8 +196,6 @@ dri_destroy_buffer(__DRIdrawable * dPriv)
    struct st_api *stapi = screen->st_api;
    int i;
 
-   pipe_surface_reference(&drawable->drisw_surface, NULL);
-
    for (i = 0; i < ST_ATTACHMENT_COUNT; i++)
       pipe_resource_reference(&drawable->textures[i], NULL);
    for (i = 0; i < ST_ATTACHMENT_COUNT; i++)
diff --git a/src/gallium/frontends/dri/dri_drawable.h b/src/gallium/frontends/dri/dri_drawable.h
index 8514843464c..6ba4c64fffc 100644
--- a/src/gallium/frontends/dri/dri_drawable.h
+++ b/src/gallium/frontends/dri/dri_drawable.h
@@ -62,9 +62,6 @@ struct dri_drawable
    struct pipe_fence_handle *throttle_fence;
    bool flushing; /* prevents recursion in dri_flush */
 
-   /* used only by DRISW */
-   struct pipe_surface *drisw_surface;
-
    /* hooks filled in by dri2 & drisw */
    void (*allocate_textures)(struct dri_context *ctx,
                              struct dri_drawable *drawable,



More information about the mesa-commit mailing list