zink: delete some unused descriptor struct members
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 4 Aug 2022 15:20:16 +0000 (11:20 -0400)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 14 Aug 2022 22:38:04 +0000 (18:38 -0400)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18051>

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

index 0996c35..66aca5a 100644 (file)
@@ -990,8 +990,6 @@ zink_descriptors_deinit_lazy(struct zink_context *ctx)
 {
    if (ctx->dd) {
       struct zink_screen *screen = zink_screen(ctx->base.screen);
-      if (ctx->dd->dummy_pool)
-         VKSCR(DestroyDescriptorPool)(screen->dev, ctx->dd->dummy_pool, NULL);
       if (ctx->dd->push_dsl[0])
          VKSCR(DestroyDescriptorSetLayout)(screen->dev, ctx->dd->push_dsl[0]->layout, NULL);
       if (ctx->dd->push_dsl[1])
index 118056f..1af5b80 100644 (file)
@@ -307,19 +307,10 @@ struct zink_descriptor_pool_key {
 
 struct zink_descriptor_data {
    struct zink_descriptor_layout_key *push_layout_keys[2]; //gfx, compute
-   struct zink_descriptor_pool *push_pool[2]; //gfx, compute
    struct zink_descriptor_layout *push_dsl[2]; //gfx, compute
    VkDescriptorUpdateTemplate push_template[2]; //gfx, compute
-   uint8_t last_push_usage[2];
-   bool push_valid[2];
-   uint32_t push_state[2];
-   bool gfx_push_valid[ZINK_SHADER_COUNT];
-   uint32_t gfx_push_state[ZINK_SHADER_COUNT];
-   struct zink_descriptor_set *last_set[2];
-
-   VkDescriptorPool dummy_pool;
+
    struct zink_descriptor_layout *dummy_dsl;
-   VkDescriptorUpdateTemplate dummy_template;
    VkDescriptorSet dummy_set;
 
    VkDescriptorSetLayout bindless_layout;
@@ -327,7 +318,6 @@ struct zink_descriptor_data {
    VkDescriptorSet bindless_set;
    bool bindless_bound;
 
-   bool changed[2][ZINK_DESCRIPTOR_TYPES + 1];
    bool has_fbfetch;
    struct zink_program *pg[2]; //gfx, compute
 };