mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-26 03:55:37 +00:00
Fix Vulkan validation errors with using queries
This commit is contained in:
parent
cb69968d47
commit
ab9254f21a
@ -1283,6 +1283,7 @@ void Rasterizer::EndPredication() {
|
||||
void Rasterizer::StartOcclusionQuery(VAddr addr) {
|
||||
LOG_DEBUG(Render_Vulkan, "addr = {:#x}, index = {}", addr, occlusion_current_index);
|
||||
|
||||
scheduler.EndRendering();
|
||||
const auto cmdbuf = scheduler.CommandBuffer();
|
||||
cmdbuf.resetQueryPool(occlusion_query_pool, occlusion_current_index, 1);
|
||||
ScopeMarkerBegin("gfx:{}:occlusionQuery", fmt::ptr(reinterpret_cast<const void*>(addr)));
|
||||
@ -1302,6 +1303,7 @@ void Rasterizer::EndOcclusionQuery(VAddr addr) {
|
||||
auto index = occlusion_index_mapping[addr];
|
||||
LOG_DEBUG(Render_Vulkan, "addr = {:#x}, index = {}", addr, index);
|
||||
|
||||
scheduler.EndRendering();
|
||||
const auto cmdbuf = scheduler.CommandBuffer();
|
||||
cmdbuf.endQuery(occlusion_query_pool, index);
|
||||
ScopeMarkerEnd();
|
||||
|
Loading…
Reference in New Issue
Block a user