panvk: Kill unused fields in panvk_cmd_graphics_state

Some fields are never used, others are set but never checked.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31911>
This commit is contained in:
Boris Brezillon 2024-11-07 13:57:58 +01:00 committed by Marge Bot
parent 8a5814b456
commit f211e5f9c5
3 changed files with 0 additions and 5 deletions

View file

@ -394,7 +394,6 @@ struct panvk_cmd_graphics_state {
struct panvk_buffer *buffer;
uint64_t offset;
uint8_t index_size;
uint32_t first_vertex, base_vertex, base_instance;
bool dirty;
} ib;

View file

@ -121,8 +121,6 @@ struct panvk_cmd_graphics_state {
struct vk_sample_locations_state sl;
} dynamic;
uint32_t dirty;
struct panvk_graphics_sysvals sysvals;
struct panvk_shader_link link;
@ -155,7 +153,6 @@ struct panvk_cmd_graphics_state {
struct panvk_buffer *buffer;
uint64_t offset;
uint8_t index_size;
uint32_t first_vertex, base_vertex, base_instance;
} ib;
struct panvk_rendering_state render;

View file

@ -1367,7 +1367,6 @@ panvk_cmd_draw(struct panvk_cmd_buffer *cmdbuf, struct panvk_draw_info *draw)
/* Clear the dirty flags all at once */
vk_dynamic_graphics_state_clear_dirty(&cmdbuf->vk.dynamic_graphics_state);
cmdbuf->state.gfx.dirty = 0;
}
static unsigned