cosmic-comp/src/backend
Ian Douglas Scott f86cd933d4 kms/surface: Call cleanup_texture_cache for each device at end of draw
Fixes an issue where a dual GPU system would keep allocating dGPU PBOs in
`cpu_copy()` every frame, but `cleanup()` was not being called, since the
surface thread for the builtin output was rendered on the
primary/integrated GPU, targeting the same GPU.

Even if a different monitor was compositing on the dGPU, That wouldn't
help since that thread has it's own `GpuManager` with it's own renderer
and cache.

Running cleanup at the end (or start) of each frame seems like a good
idea. Not sure if it would be best to avoid additional calls, or if
that's desirable/fine.
2025-06-02 18:58:49 +02:00
..
kms kms/surface: Call cleanup_texture_cache for each device at end of draw 2025-06-02 18:58:49 +02:00
render shell: Using parking_lot's RwLock for fairness guarantees 2025-05-27 20:00:21 +02:00
mod.rs shell: Using parking_lot's RwLock for fairness guarantees 2025-05-27 20:00:21 +02:00
winit.rs shell: Using parking_lot's RwLock for fairness guarantees 2025-05-27 20:00:21 +02:00
x11.rs shell: Using parking_lot's RwLock for fairness guarantees 2025-05-27 20:00:21 +02:00