panvk: Stop declaring one push constant array per graphics stage

The push constant array is shared by all stages anyway, so let's just
declare one array. While at it, change the name into push_uniforms to
be consistent with the name we have in panvk_dispatch.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28397>
This commit is contained in:
Boris Brezillon 2024-01-29 14:23:12 +01:00 committed by Marge Bot
parent fac41af93c
commit 04d7b9c396
1 changed files with 3 additions and 3 deletions

View File

@ -71,8 +71,8 @@ struct panvk_draw_info {
mali_ptr varyings;
mali_ptr attributes;
mali_ptr attribute_bufs;
mali_ptr push_constants;
} stages[MESA_SHADER_STAGES];
mali_ptr push_uniforms;
mali_ptr varying_bufs;
mali_ptr textures;
mali_ptr samplers;
@ -1129,7 +1129,7 @@ panvk_draw_prepare_vertex_job(struct panvk_cmd_buffer *cmdbuf,
cfg.instance_size =
draw->instance_count > 1 ? draw->padded_vertex_count : 1;
cfg.uniform_buffers = draw->ubos;
cfg.push_uniforms = draw->stages[PIPE_SHADER_VERTEX].push_constants;
cfg.push_uniforms = draw->push_uniforms;
cfg.textures = draw->textures;
cfg.samplers = draw->samplers;
}
@ -1219,7 +1219,7 @@ panvk_emit_tiler_dcd(const struct panvk_pipeline *pipeline,
cfg.instance_size =
draw->instance_count > 1 ? draw->padded_vertex_count : 1;
cfg.uniform_buffers = draw->ubos;
cfg.push_uniforms = draw->stages[PIPE_SHADER_FRAGMENT].push_constants;
cfg.push_uniforms = draw->push_uniforms;
cfg.textures = draw->textures;
cfg.samplers = draw->samplers;