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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user