panfrost: Fix shader_modifies_coverage on Valhall

Alpha-to-coverage should set this flag. This is a hardware change since Bifrost.

Fixes: 26d339ef8a ("panfrost: Generate Valhall Malloc IDVS jobs")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17428>
This commit is contained in:
Alyssa Rosenzweig 2022-06-17 21:15:49 -04:00 committed by Marge Bot
parent 29c33f75d3
commit c89a3ad857

View file

@ -3345,8 +3345,12 @@ panfrost_emit_draw(void *out,
*/ */
cfg.evaluate_per_sample |= fs->info.fs.sample_shading; cfg.evaluate_per_sample |= fs->info.fs.sample_shading;
/* Unlike Bifrost, alpha-to-coverage must be included in
* this identically-named flag. Confusing, isn't it?
*/
cfg.shader_modifies_coverage = fs->info.fs.writes_coverage || cfg.shader_modifies_coverage = fs->info.fs.writes_coverage ||
fs->info.fs.can_discard; fs->info.fs.can_discard ||
ctx->blend->base.alpha_to_coverage;
/* Blend descriptors are only accessed by a BLEND /* Blend descriptors are only accessed by a BLEND
* instruction on Valhall. It follows that if the * instruction on Valhall. It follows that if the