zink: delete unused zink_surface member
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 25 Oct 2022 17:47:40 +0000 (13:47 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 27 Oct 2022 14:43:50 +0000 (14:43 +0000)
I think this was used before imageless_framebuffer became a requirement?

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19307>

src/gallium/drivers/zink/zink_surface.c
src/gallium/drivers/zink/zink_types.h

index 076c9ca..e992d04 100644 (file)
@@ -121,7 +121,6 @@ init_surface_info(struct zink_surface *surface, struct zink_resource *res, VkIma
       if (zink_kopper_has_srgb(cdt))
          surface->info.format[1] = ivci->format == cdt->formats[0] ? cdt->formats[1] : cdt->formats[0];
    }
-   surface->info_hash = _mesa_hash_data(&surface->info, sizeof(surface->info));
 }
 
 static struct zink_surface *
@@ -389,7 +388,6 @@ zink_rebind_surface(struct zink_context *ctx, struct pipe_surface **psurface)
    /* update for imageless fb */
    surface->info.flags = res->obj->vkflags;
    surface->info.usage = res->obj->vkusage;
-   surface->info_hash = _mesa_hash_data(&surface->info, sizeof(surface->info));
    simple_mtx_unlock(&res->surface_mtx);
    return true;
 }
index 9b4f33a..d5e0611 100644 (file)
@@ -1310,7 +1310,6 @@ struct zink_surface {
    VkImageViewCreateInfo ivci;
    VkImageViewUsageCreateInfo usage_info;
    struct zink_surface_info info;
-   uint32_t info_hash;
    bool is_swapchain;
    VkImageView image_view;
    void *dt;