Skip to content

venus: extend buffer cache to cover layering usage

Yiwei Zhang requested to merge zzyiwei/mesa:buffer-cache-extend into main

Layering clients, e.g. angle and zink, use wide sets of buffer usage flags because they don't know what a resource will be used for in the majority cases, which is on the other hand making it easier for layering to optimize resource management.

This change adds a super-set usage to the buffer cache entries, that will mostly ensure no cache-miss for non-sparsed buffer usages. Since that involves usage bits from extensions, we'll mask out those disabled ones upon querying but will use the static cache create info for checking cache hit for code simplicity.

TEST: those sync buffer creates and mem req queries are gone with angle

Closes: #6434 (closed)

Edited by Yiwei Zhang

Merge request reports