diff options
author | Jonathan Marek <[email protected]> | 2019-12-05 20:58:58 -0500 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-12-12 20:33:16 -0500 |
commit | ab54aceaa82b0f5759aa3d3357837a2918a538d8 (patch) | |
tree | 0a6e5611f46d9a06669f299cb4a0eb69ceae13bf /src/freedreno | |
parent | 07d8b98b54eb9e8fe9a0378acbfff61d3bd20498 (diff) |
turnip: fix incorrectly failing assert
pColorBlendState is allowed to be NULL if subpass has >0 color attachments
but they are all unused.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/vulkan/tu_pipeline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index 8be68ab2665..3a17cc76494 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -1934,6 +1934,7 @@ tu_pipeline_builder_init_graphics( subpass->depth_stencil_attachment.attachment != VK_ATTACHMENT_UNUSED; assert(subpass->color_count == 0 || + !create_info->pColorBlendState || subpass->color_count == create_info->pColorBlendState->attachmentCount); builder->color_attachment_count = subpass->color_count; for (uint32_t i = 0; i < subpass->color_count; i++) { |