mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
panfrost: Don't mask coverage mask to 4-bits
While it is correct for MSAA 4x, it will break for MSAA 8x and 16x, and it is only dubiously correct for no-MSAA. Drop the mask. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6195>
This commit is contained in:
parent
6afd4addef
commit
c4c8c8e8fb
2 changed files with 2 additions and 2 deletions
|
|
@ -741,7 +741,7 @@ panfrost_frag_shader_meta_init(struct panfrost_context *ctx,
|
|||
fs = panfrost_get_shader_state(ctx, PIPE_SHADER_FRAGMENT);
|
||||
|
||||
bool msaa = ctx->rasterizer && ctx->rasterizer->base.multisample;
|
||||
fragmeta->coverage_mask = (msaa ? ctx->sample_mask : ~0) & 0xF;
|
||||
fragmeta->coverage_mask = msaa ? ctx->sample_mask : ~0;
|
||||
|
||||
fragmeta->unknown2_3 = MALI_DEPTH_FUNC(MALI_FUNC_ALWAYS) | 0x10;
|
||||
fragmeta->unknown2_4 = 0x4e0;
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ panfrost_load_midg(
|
|||
.flags_lo = 0x20,
|
||||
.work_count = 4,
|
||||
},
|
||||
.coverage_mask = 0xF,
|
||||
.coverage_mask = ~0,
|
||||
.unknown2_3 = MALI_DEPTH_FUNC(MALI_FUNC_ALWAYS) | 0x10,
|
||||
.unknown2_4 = 0x4e0,
|
||||
.stencil_mask_front = ~0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue