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:
Lucas Stach 2024-10-25 15:48:51 +02:00 committed by Marge Bot
parent f7652de1f1
commit 6775524c69

View file

@ -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;
}