mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 04:50:11 +01:00
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:
parent
29c33f75d3
commit
c89a3ad857
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue