Skip to content

llvmpipe: make last_fence a screen/rast object not a context one.

Dave Airlie requested to merge airlied/mesa:llvmpipe-use-rast-fence into main

When a flush happens the per-context setup is used to hold the fence for the last scene sent to the rasterizer. However when multiple contexts are in use, this fence won't get returned to be blocked on.

Instead move the last fence to the rasterizer object, and return that instead as it should be valid across contexts.

Fixes gtk4 bugs on llvmpipe since overlapping vertex/fragment.

Fixes: 6bbbe15a ("Reinstate: llvmpipe: allow vertex processing and fragment processing in parallel")

Merge request reports