UPSTREAM: venus: extend buffer cache to cover layering usage
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.
BUG=b:231780965
TEST=dEQP-VK.api.buffer*
TEST=sync buffer creations gone from angle
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16379>
(cherry picked from commit 81515f6b3c4a5c9d3472b9897a450ca9b586c07b)
Change-Id: If78bf3c00ed5892104aaf2a607efb22643227ee7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/3632940
1 file changed