nvk: EXT_conditional_rendering

This reads the buffer value, combines it with the inverted setting
and sets SET_RENDER_ENABLE depending on this.

This works for draw and clear calls, but not for dispatch.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24520>
This commit is contained in:
Thomas H.P. Andersen
2023-07-23 17:10:27 +02:00
committed by Faith Ekstrand
parent 07c70c77de
commit 8c25cd307a
5 changed files with 86 additions and 2 deletions

View File

@@ -176,6 +176,7 @@ nvk_BindBufferMemory2(VkDevice device,
VK_FROM_HANDLE(nvk_device_memory, mem, pBindInfos[i].memory);
VK_FROM_HANDLE(nvk_buffer, buffer, pBindInfos[i].buffer);
buffer->is_local = !(mem->bo->flags & NOUVEAU_WS_BO_GART);
#if NVK_NEW_UAPI == 1
if (buffer->vma_size_B) {
VK_FROM_HANDLE(nvk_device, dev, device);