zink: remove zink_batch_state::descs_used

this is no longer used or needed

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11400>
This commit is contained in:
Mike Blumenkrantz
2021-05-07 09:31:45 -04:00
committed by Marge Bot
parent f93aec2d04
commit b85a6b9162
3 changed files with 1 additions and 6 deletions
-1
View File
@@ -82,7 +82,6 @@ zink_reset_batch_state(struct zink_context *ctx, struct zink_batch_state *bs)
bs->flush_res = NULL;
bs->descs_used = 0;
ctx->resource_size -= bs->resource_size;
bs->resource_size = 0;
-2
View File
@@ -69,8 +69,6 @@ struct zink_batch_state {
struct zink_resource *flush_res;
unsigned short descs_used; //number of descriptors currently allocated
struct set *fbs;
struct set *programs;
+1 -3
View File
@@ -813,9 +813,7 @@ out:
_mesa_hash_table_insert_pre_hashed(pool->desc_sets, hash, &zds->key, zds);
quick_out:
zds->punted = zds->invalid = false;
if (batch_add_desc_set(batch, zds)) {
batch->state->descs_used += pool->key.layout->num_descriptors;
}
batch_add_desc_set(batch, zds);
if (push_set)
ctx->dd->last_set[is_compute] = zds;
else