Skip to content

freedreno/a6xx: Add missing PC_CCU_INVALIDATE_x

Rob Clark requested to merge robclark/mesa:fd/ccu-inv into main

The kernel normally inserts these between submits, but when we merge submits in userspace we need to add them ourselves.

Closes: #5114 (closed) Fixes: cccdc513 ("freedreno/drm/sp: Implement deferred submit merging") Signed-off-by: Rob Clark robdclark@chromium.org


NOTE: when we are merging submits, we could be a bit more clever and move emit_restore into a preamble which is only prepended to the beginning of the set of merged submits, and fine tune the flushing more based on transitions between GMEM and sysmem, rather than always assuming the worst case like when we had no way to know what the previous/next batch was.. I have some vague ideas on this. But lets land the simple brute-force fix, which can be backported to release branches, first.

Merge request reports