mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
radeonsi: fix alpha-to-coverage if color writes are disabled
If alpha-to-coverage is enabled, we have to compute alpha even if color writes are disabled. Signed-off-by: Józef Kucia <joseph.kucia@gmail.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
79724c89f8
commit
f222cf3c6d
1 changed files with 3 additions and 0 deletions
|
|
@ -1168,10 +1168,13 @@ static void si_shader_selector_key_hw_vs(struct si_context *sctx,
|
|||
/* Find out if PS is disabled. */
|
||||
bool ps_disabled = true;
|
||||
if (ps) {
|
||||
const struct si_state_blend *blend = sctx->queued.named.blend;
|
||||
bool alpha_to_coverage = blend && blend->alpha_to_coverage;
|
||||
bool ps_modifies_zs = ps->info.uses_kill ||
|
||||
ps->info.writes_z ||
|
||||
ps->info.writes_stencil ||
|
||||
ps->info.writes_samplemask ||
|
||||
alpha_to_coverage ||
|
||||
si_get_alpha_test_func(sctx) != PIPE_FUNC_ALWAYS;
|
||||
|
||||
unsigned ps_colormask = sctx->framebuffer.colorbuf_enabled_4bit &
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue