From 01055198dc2376b5c32f3e00203f71b26a91cc47 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Thu, 29 Sep 2022 18:55:56 +0200 Subject: [PATCH] tu: Set default sample mask to all 1's This avoids a dependency on the sample count in the blend state, and seems to work. Otherwise, we'd need to make blend dynamic if samples is dynamic and record whether the sample mask was NULL, which is a lot more complicated. Part-of: --- src/freedreno/vulkan/tu_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index 93ebbf046be..a632dded914 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -2354,7 +2354,7 @@ tu6_emit_blend_control(struct tu_pipeline *pipeline, { const uint32_t sample_mask = msaa_info->pSampleMask ? (*msaa_info->pSampleMask & 0xffff) - : ((1 << msaa_info->rasterizationSamples) - 1); + : 0xffff; pipeline->blend.sp_blend_cntl =