Skip to content

pvr: Fix csb control stream extension

Karmjit Mahil requested to merge CreativeCylon/mesa:dev/Fix_cs_extension into main

What does this MR do and why?

pvr: Fix csb control stream extension

Previously we reserved space for a stream link and whenever we ran out of space in the current bo, allocated a new one, and emitted a link to it. This is problematic as stream links can only be emitted at state update boundaries so the handling could have produced a corrupted control stream.

That's fixed by using a relocation_mark set by the driver to indicate where a state update was last started, so csb can relocate the whole update into the new bo and link to it.

Signed-off-by: Karmjit Mahil Karmjit.Mahil@imgtec.com

Edited by Karmjit Mahil

Merge request reports