This PR enabled the swapchain to be used with AMD GPUs. The issue is that we had to separate the swapchain into 2 functions and therefore the rendering is also not controlled at the same time. Semaphores were finished, before being used and the driver stalled when waiting for those Semaphores. This doesn't solve the issue that renderdoc can still crash the graphics driver. Pull Request: blender/blender#107840