mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
etnaviv: set PE_COLOR_FORMAT_OVERWRITE when no color target is active
When no color target is bound PE_COLOR_FORMAT_OVERWRITE must be set to
avoid GPU hangs.
Fixes: 07cd0f2306 ("etnaviv: blend: Add support for MRTs")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31845>
This commit is contained in:
parent
f7652de1f1
commit
6775524c69
1 changed files with 3 additions and 0 deletions
|
|
@ -178,6 +178,9 @@ etna_update_blend(struct etna_context *ctx)
|
|||
current_rt++;
|
||||
}
|
||||
|
||||
if (current_rt == 0)
|
||||
blend->rt[0].PE_COLOR_FORMAT = VIVS_PE_COLOR_FORMAT_OVERWRITE;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue