1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[dxvk] Add hack to allow RenderDoc to function on AMD GPUs

This commit is contained in:
Philip Rebohle 2018-02-05 12:12:50 +01:00
parent 26ef59dd6f
commit 6f6ecb441d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -33,6 +33,10 @@ namespace dxvk {
VkMemoryRequirements memReq;
m_vkd->vkGetImageMemoryRequirements(
m_vkd->device(), m_image, &memReq);
// FIXME this only exists to make renderdoc happy
memReq.size += 65536;
m_memory = memAlloc.alloc(memReq, memFlags);
if (m_vkd->vkBindImageMemory(m_vkd->device(),