v3dv: make the driver more robust against OOM

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

This is generally very difficult to handle properly everywhere, but at least this is good enough to make the few CTS tests for this happy.

Fixes (on Rpi4): dEQP-VK.wsi.xlib.swapchain.simulate_oom.*

Part-of:

10dbb1e07da v3dv: make the driver more robust against OOM
src/broadcom/vulkan/v3dv_bo.c | 8 ++++++--
src/broadcom/vulkan/v3dv_cl.c | 21 ++++++++++++---------
src/broadcom/vulkan/v3dv_cmd_buffer.c | 34 ++++++++++++++++++++++++++++++++--
src/broadcom/vulkan/v3dv_meta_clear.c | 3 +++
src/broadcom/vulkan/v3dv_meta_copy.c | 30 ++++++++++++++++++++++++++++++
src/broadcom/vulkan/v3dv_private.h | 25 +++++++++++++++++++++++++
6 files changed, 108 insertions(+), 13 deletions(-)

Upstream: cgit.freedesktop.org


  • Share