gallium/dri: Remove unused dri_drawable::drisw_surface
authorAdam Jackson <ajax@redhat.com>
Tue, 11 May 2021 20:00:07 +0000 (16:00 -0400)
committerAdam Jackson <ajax@redhat.com>
Mon, 17 May 2021 20:02:18 +0000 (16:02 -0400)
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10758>

src/gallium/frontends/dri/dri_drawable.c
src/gallium/frontends/dri/dri_drawable.h

index 5ef0a2c..8a031cc 100644 (file)
@@ -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++)
index 8514843..6ba4c64 100644 (file)
@@ -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,