multigpu: clean-up src renderer in finish
Some checks are pending
Continuous Integration / format (push) Waiting to run
Continuous Integration / clippy-check (push) Waiting to run
Continuous Integration / check-msrv (push) Blocked by required conditions
Continuous Integration / check-minimal (push) Blocked by required conditions
Continuous Integration / smithay-check-features (push) Waiting to run
Continuous Integration / smithay-tests (push) Blocked by required conditions
Continuous Integration / smallvil-check (push) Blocked by required conditions
Continuous Integration / anvil-check-features (push) Blocked by required conditions
Continuous Integration / WLCS: ${{ matrix.job_name }} (buffer, BadBufferTest*, Bad Buffer Test) (push) Blocked by required conditions
Continuous Integration / WLCS: ${{ matrix.job_name }} (core, SelfTest*:FrameSubmission*, Core tests) (push) Blocked by required conditions
Continuous Integration / WLCS: ${{ matrix.job_name }} (output, XdgOutputV1Test*, Output tests) (push) Blocked by required conditions
Continuous Integration / WLCS: ${{ matrix.job_name }} (pointer-input, */SurfacePointerMotionTest*:RelativePointer*, Pointer input tests) (push) Blocked by required conditions
Continuous Integration / Documentation on Github Pages (push) Blocked by required conditions

This commit is contained in:
Christian Meissl 2024-06-19 07:42:50 +02:00 committed by Victoria Brekenfeld
parent 7f403e8e33
commit f58a259c2b

View file

@ -1240,6 +1240,10 @@ where
)
.map_err(Error::Target)?;
let sync = frame.finish().map_err(Error::Target)?;
render
.renderer_mut()
.cleanup_texture_cache()
.map_err(Error::Render)?;
return Ok(sync);
}
@ -1291,6 +1295,10 @@ where
}
if mappings.is_empty() {
render
.renderer_mut()
.cleanup_texture_cache()
.map_err(Error::Render)?;
return Ok(sync::SyncPoint::signaled());
}
@ -1335,9 +1343,18 @@ where
.map_err(Error::Target)?;
}
}
return frame.finish().map_err(Error::Target);
let sync = frame.finish().map_err(Error::Target)?;
render
.renderer_mut()
.cleanup_texture_cache()
.map_err(Error::Render)?;
return Ok(sync);
}
render
.renderer_mut()
.cleanup_texture_cache()
.map_err(Error::Render)?;
return Ok(sync);
}