Vulkan: Device Context Resource Management #108968

Merged
Jeroen Bakker merged 8 commits from Jeroen-Bakker/blender:vulkan-device-context-tracking into main 2023-06-15 08:14:44 +02:00

8 Commits

Author SHA1 Message Date
Jeroen Bakker cddb39be6d Data transfer fixes. 2023-06-15 08:11:17 +02:00
Jeroen Bakker a087faba48 Renames 2023-06-14 16:16:53 +02:00
Jeroen Bakker 3e5f882b27 Rename compile unit 2023-06-14 15:50:53 +02:00
Jeroen Bakker 71d8ab3450 Add texture 2023-06-14 15:41:19 +02:00
Jeroen Bakker df61192943 Moved most to VKBindableResource 2023-06-14 15:21:19 +02:00
Jeroen Bakker 9e71769700 Small fix. 2023-06-14 12:54:18 +02:00
Jeroen Bakker c749e70afd Added index buffer 2023-06-14 12:38:39 +02:00
Jeroen Bakker 5ee4c365c3 Vulkan: Device Context Resource Management
The current Vulkan resource management has some issues as context that
are not active can still use resources that are freed via another
context.

When this happens incorrect data can be read on the GPU and even crash
Blender. When trying to bind something that now contains other memory
pointers.

This change introduces that contexts are tracked via the device.
Context will be registered/unregistered with the device instance.
Unbinding of resources must pass the device and the device will check
all registered contexts. Binding of resources will happen via the active
context only.
2023-06-14 11:59:03 +02:00