mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
etnaviv: Extend etna_record_flush_resources(..) for MRTs
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26565>
This commit is contained in:
parent
f070d44add
commit
5598a449f1
1 changed files with 5 additions and 2 deletions
|
|
@ -798,8 +798,11 @@ etna_record_flush_resources(struct etna_context *ctx)
|
|||
{
|
||||
struct pipe_framebuffer_state *fb = &ctx->framebuffer_s;
|
||||
|
||||
if (fb->nr_cbufs > 0) {
|
||||
struct etna_surface *surf = etna_surface(fb->cbufs[0]);
|
||||
for (unsigned i = 0; i < fb->nr_cbufs; i++) {
|
||||
if (!fb->cbufs[i])
|
||||
continue;
|
||||
|
||||
struct etna_surface *surf = etna_surface(fb->cbufs[i]);
|
||||
struct etna_resource *rsc = etna_resource(surf->prsc);
|
||||
|
||||
if (rsc->shared && !rsc->explicit_flush)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue