Skip to content

virgl: Flush context before waiting on fences

Stéphane Marchesin requested to merge stephane.marchesin/mesa:gun3d_0006 into main

The logic behind this change is intuitive: if we are waiting for something, we should probably flush all pending rendering so that it starts executing in the meantime. This prevents the GPU from sitting idle for long periods of time while we are also blocked in the app.

With the gun3d trace: Before: 79 fps After: 215 fps

Merge request reports