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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18912>
This commit is contained in:
Connor Abbott
2022-09-29 18:55:56 +02:00
committed by Marge Bot
parent e61583f6f1
commit 01055198dc
+1 -1
View File
@@ -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 =