panvk: Always allocate at least one BLEND descriptor for fragment shaders

Even there's no render target.

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/13077>
This commit is contained in:
Boris Brezillon 2021-09-15 08:59:16 +02:00 committed by Marge Bot
parent bff052d6f5
commit a5115faefa
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ panvk_pipeline_builder_alloc_static_state_bo(struct panvk_pipeline_builder *buil
builder->stages[i].rsd_offset = bo_size;
bo_size += pan_size(RENDERER_STATE);
if (i == MESA_SHADER_FRAGMENT)
bo_size += pan_size(BLEND) * pipeline->blend.state.rt_count;
bo_size += pan_size(BLEND) * MAX2(pipeline->blend.state.rt_count, 1);
}
if (panvk_pipeline_static_state(pipeline, VK_DYNAMIC_STATE_VIEWPORT) &&