panvk: Don't allocate an array of blend constants

Those are shared by all render targets.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762>
This commit is contained in:
Boris Brezillon 2021-09-06 16:10:41 +02:00
parent 2c4b8f9168
commit f0be7dc745
2 changed files with 2 additions and 2 deletions

View File

@ -544,7 +544,7 @@ struct panvk_cmd_state {
mali_ptr fs_rsd;
struct {
float constants[8][4];
float constants[4];
} blend;
struct {

View File

@ -465,7 +465,7 @@ panvk_draw_prepare_fs_rsd(struct panvk_cmd_buffer *cmdbuf,
STATIC_ASSERT(sizeof(pipeline->blend.bd_template[0]) >= sizeof(*bd_templ));
panvk_per_arch(emit_blend_constant)(cmdbuf->device, pipeline, i,
cmdbuf->state.blend.constants[i],
cmdbuf->state.blend.constants,
&bd_dyn);
pan_merge(bd_dyn, (*bd_templ), BLEND);
memcpy(bd, &bd_dyn, sizeof(bd_dyn));