panvk: Get rid of panvk_descriptor_state::dirty

This field is only set, never tested. When we want to flag a descriptor
dirty, we simply set the relevant mali_ptr in panvk_descriptor_state
to zero.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28927>
This commit is contained in:
Boris Brezillon
2024-01-30 12:37:03 +01:00
committed by Marge Bot
parent a3fb990a86
commit 330a75b9f3
2 changed files with 1 additions and 3 deletions

View File

@@ -89,7 +89,6 @@ enum panvk_dynamic_state_bits {
};
struct panvk_descriptor_state {
uint32_t dirty;
const struct panvk_descriptor_set *sets[MAX_SETS];
struct panvk_push_descriptor_set *push_sets[MAX_SETS];
union {

View File

@@ -1342,7 +1342,7 @@ panvk_cmd_draw(struct panvk_cmd_buffer *cmdbuf, struct panvk_draw_info *draw)
}
/* Clear the dirty flags all at once */
desc_state->dirty = cmdbuf->state.dirty = 0;
cmdbuf->state.dirty = 0;
panvk_cmd_unprepare_push_sets(cmdbuf, bind_point_state);
}
@@ -1789,7 +1789,6 @@ panvk_per_arch(CmdDispatch)(VkCommandBuffer commandBuffer, uint32_t x,
}
panvk_per_arch(cmd_close_batch)(cmdbuf);
desc_state->dirty = 0;
panvk_cmd_unprepare_push_sets(cmdbuf, bind_point_state);
}