Skip to content

Draft: anv: new cache infrastructure

A while ago @fjdegroo noticed we did some pretty dumb stuff with regards to cache flushes.

Our current code looks at source & destination of barriers in isolation. So it can't tell whether a barrier moves things to/from the same HW unit for instance. In which case we could just optimize the barrier away.

We can do a lot better though. If you have a map of cache structure, you can find the fastest path from/to HW units and avoid going to main memory. This is what this MR implements.

CI run for this : https://mesa-ci.01.org/djdeath_vulkan/builds/1083/group/63a9f0ea7bb98050796b649e85481845

Edited by Lionel Landwerlin

Merge request reports