Browse Source
If this get builded i'll be able to actually, truly and sincely fly
eds-true-adreno-fixes
CamilleLaVey
3 weeks ago
committed by
Caio Oliveira
No known key found for this signature in database
GPG Key ID: AAAE6C7FD4186B0C
1 changed files with
5 additions and
2 deletions
-
src/video_core/renderer_vulkan/vk_buffer_cache.cpp
|
|
@ -7,6 +7,7 @@ |
|
|
#include <algorithm>
|
|
|
#include <algorithm>
|
|
|
#include <array>
|
|
|
#include <array>
|
|
|
#include <cstring>
|
|
|
#include <cstring>
|
|
|
|
|
|
#include <limits>
|
|
|
#include <span>
|
|
|
#include <span>
|
|
|
#include <vector>
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
@ -598,7 +599,7 @@ void BufferCacheRuntime::BindVertexBuffer(u32 index, VkBuffer buffer, u32 offset |
|
|
ReserveNullBuffer(); |
|
|
ReserveNullBuffer(); |
|
|
buffer = *null_buffer; |
|
|
buffer = *null_buffer; |
|
|
offset = 0; |
|
|
offset = 0; |
|
|
size = VK_WHOLE_SIZE; |
|
|
|
|
|
|
|
|
size = std::numeric_limits<u32>::max(); |
|
|
} |
|
|
} |
|
|
// Use BindVertexBuffers2EXT only if EDS1 is supported AND VIDS is not active
|
|
|
// Use BindVertexBuffers2EXT only if EDS1 is supported AND VIDS is not active
|
|
|
// When VIDS is active, the pipeline doesn't declare VERTEX_INPUT_BINDING_STRIDE as dynamic
|
|
|
// When VIDS is active, the pipeline doesn't declare VERTEX_INPUT_BINDING_STRIDE as dynamic
|
|
|
@ -750,9 +751,11 @@ vk::Buffer BufferCacheRuntime::CreateNullBuffer() { |
|
|
|
|
|
|
|
|
scheduler.RequestOutsideRenderPassOperationContext(); |
|
|
scheduler.RequestOutsideRenderPassOperationContext(); |
|
|
|
|
|
|
|
|
} // namespace Vulkan
|
|
|
|
|
|
scheduler.Record([buffer = *ret](vk::CommandBuffer cmdbuf) { |
|
|
scheduler.Record([buffer = *ret](vk::CommandBuffer cmdbuf) { |
|
|
cmdbuf.FillBuffer(buffer, 0, VK_WHOLE_SIZE, 0); |
|
|
cmdbuf.FillBuffer(buffer, 0, VK_WHOLE_SIZE, 0); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
return ret; |
|
|
return ret; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace Vulkan
|