v3dv: implement proper caching for partial clear pipelines

Graphics / Mesa 3D Graphics Library / Mesa - Iago Toral Quiroga [igalia.com] - 13 October 2020 21:21 UTC

So far we have been caching the first pipeline we produced and always reusing that, which is obviously incorrect.

This change implements a proper cache and also takes care of releasing the cached resources when the device is destroyed.

Part-of:

d6d8bfbb4a7 v3dv: implement proper caching for partial clear pipelines
src/broadcom/vulkan/v3dv_device.c | 46 +++++++++++++++
src/broadcom/vulkan/v3dv_meta_clear.c | 104 +++++++++++++++++++++++-----------
src/broadcom/vulkan/v3dv_private.h | 10 +++-
3 files changed, 126 insertions(+), 34 deletions(-)

Upstream: cgit.freedesktop.org


  • Share