[vk] Extending TF handling

This commit is contained in:
CamilleLaVey
2025-11-30 18:06:05 -04:00
committed by Caio Oliveira
parent 457beec066
commit 0152770fd7
3 changed files with 9 additions and 2 deletions

View File

@@ -40,7 +40,8 @@ void Scheduler::CommandChunk::ExecuteAll(vk::CommandBuffer cmdbuf,
}
Scheduler::Scheduler(const Device& device_, StateTracker& state_tracker_)
: device{device_}, state_tracker{state_tracker_},
: device{device_}, supports_transform_feedback{device_.IsExtTransformFeedbackSupported()},
state_tracker{state_tracker_},
master_semaphore{std::make_unique<MasterSemaphore>(device)},
command_pool{std::make_unique<CommandPool>(*master_semaphore, device)} {
AcquireNewChunk();
@@ -296,7 +297,9 @@ void Scheduler::EndRenderPass()
}
query_cache->CounterEnable(VideoCommon::QueryType::ZPassPixelCount64, false);
query_cache->CounterEnable(VideoCommon::QueryType::StreamingByteCount, false);
if (supports_transform_feedback) {
query_cache->CounterEnable(VideoCommon::QueryType::StreamingByteCount, false);
}
query_cache->NotifySegment(false);
Record([num_images = num_renderpass_images,

View File

@@ -235,6 +235,7 @@ private:
void AcquireNewChunk();
const Device& device;
const bool supports_transform_feedback;
StateTracker& state_tracker;
std::unique_ptr<MasterSemaphore> master_semaphore;

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later