mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-28 01:00:35 +01:00
Compare commits
No commits in common. "b1821cb60e770e80254aef371436a8d91e4c951b" and "70620c245c898ca2f2a21044c751637ab4eda626" have entirely different histories.
b1821cb60e
...
70620c245c
8 changed files with 11 additions and 60 deletions
|
|
@ -582,8 +582,6 @@ void Maxwell3D::ProcessQueryCondition() {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
rasterizer->SetConditionalRenderingPredicate(execute_on);
|
||||
}
|
||||
|
||||
void Maxwell3D::ProcessCounterReset() {
|
||||
|
|
|
|||
|
|
@ -381,11 +381,6 @@ void QueryCacheBase<Traits>::NotifySegment(bool resume) {
|
|||
}
|
||||
}
|
||||
|
||||
template <typename Traits>
|
||||
void QueryCacheBase<Traits>::SetHostConditionalRenderingResult(bool condition_passed) {
|
||||
impl->runtime.SetHostConditionalRenderingResult(condition_passed);
|
||||
}
|
||||
|
||||
template <typename Traits>
|
||||
bool QueryCacheBase<Traits>::AccelerateHostConditionalRendering() {
|
||||
bool qc_dirty = false;
|
||||
|
|
|
|||
|
|
@ -115,8 +115,6 @@ public:
|
|||
|
||||
void NotifySegment(bool resume);
|
||||
|
||||
void SetHostConditionalRenderingResult(bool condition_passed);
|
||||
|
||||
void BindToChannel(s32 id) override;
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
|
|
@ -149,8 +146,6 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
virtual void SetConditionalRenderingPredicate(bool enabled) {}
|
||||
|
||||
/// Attempt to use a faster method to perform a surface copy
|
||||
[[nodiscard]] virtual bool AccelerateSurfaceCopy(
|
||||
const Tegra::Engines::Fermi2D::Surface& src, const Tegra::Engines::Fermi2D::Surface& dst,
|
||||
|
|
|
|||
|
|
@ -226,7 +226,8 @@ public:
|
|||
}
|
||||
PauseCounter();
|
||||
const auto driver_id = device.GetDriverID();
|
||||
if (driver_id == VK_DRIVER_ID_ARM_PROPRIETARY) {
|
||||
if (driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY ||
|
||||
driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) {
|
||||
ApplyBanksWideOp<false>(
|
||||
pending_sync,
|
||||
[](SamplesQueryBank* bank, size_t start, size_t amount) { bank->Sync(start, amount); });
|
||||
|
|
@ -252,13 +253,13 @@ public:
|
|||
}
|
||||
});
|
||||
|
||||
const u64 final_total = total + GetAmendValue();
|
||||
total += GetAmendValue();
|
||||
query->value = total;
|
||||
query->flags |= VideoCommon::QueryFlagBits::IsHostSynced;
|
||||
query->flags |= VideoCommon::QueryFlagBits::IsFinalValueSynced;
|
||||
direct_sync_values.emplace_back(VideoCommon::SyncValuesStruct{
|
||||
.address = query->guest_address,
|
||||
.value = final_total,
|
||||
.value = total,
|
||||
.size = SamplesQueryBank::QUERY_SIZE,
|
||||
});
|
||||
|
||||
|
|
@ -632,16 +633,16 @@ private:
|
|||
std::deque<std::vector<size_t>> pending_flush_sets;
|
||||
|
||||
// State Machine
|
||||
size_t current_bank_slot{};
|
||||
size_t current_bank_id{};
|
||||
SamplesQueryBank* current_bank{};
|
||||
VkQueryPool current_query_pool{};
|
||||
size_t current_query_id{};
|
||||
size_t current_bank_slot;
|
||||
size_t current_bank_id;
|
||||
SamplesQueryBank* current_bank;
|
||||
VkQueryPool current_query_pool;
|
||||
size_t current_query_id;
|
||||
size_t num_slots_used{};
|
||||
size_t first_accumulation_checkpoint{};
|
||||
size_t last_accumulation_checkpoint{};
|
||||
bool accumulation_since_last_sync{};
|
||||
VideoCommon::HostQueryBase* current_query{};
|
||||
VideoCommon::HostQueryBase* current_query;
|
||||
bool has_started{};
|
||||
std::mutex flush_guard;
|
||||
|
||||
|
|
@ -1385,35 +1386,6 @@ void QueryCacheRuntime::ResumeHostConditionalRendering() {
|
|||
impl->is_hcr_running = true;
|
||||
}
|
||||
|
||||
void QueryCacheRuntime::SetHostConditionalRenderingResult(bool condition_passed) {
|
||||
if (!impl->device.IsExtConditionalRendering()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const bool was_running = impl->is_hcr_running;
|
||||
if (was_running) {
|
||||
PauseHostConditionalRendering();
|
||||
}
|
||||
|
||||
impl->scheduler.RequestOutsideRenderPassOperationContext();
|
||||
impl->scheduler.Record(
|
||||
[buffer = *impl->hcr_resolve_buffer, value = condition_passed ? 1u : 0u](vk::CommandBuffer cmdbuf) {
|
||||
cmdbuf.FillBuffer(buffer, 0, sizeof(u32), value);
|
||||
});
|
||||
|
||||
impl->hcr_setup.buffer = *impl->hcr_resolve_buffer;
|
||||
impl->hcr_setup.offset = 0;
|
||||
impl->hcr_setup.flags = 0;
|
||||
impl->hcr_buffer = *impl->hcr_resolve_buffer;
|
||||
impl->hcr_offset = 0;
|
||||
impl->hcr_is_set = true;
|
||||
impl->is_hcr_running = false;
|
||||
|
||||
if (was_running) {
|
||||
ResumeHostConditionalRendering();
|
||||
}
|
||||
}
|
||||
|
||||
void QueryCacheRuntime::HostConditionalRenderingCompareValueImpl(VideoCommon::LookupData object,
|
||||
bool is_equal) {
|
||||
{
|
||||
|
|
@ -1546,7 +1518,7 @@ bool QueryCacheRuntime::HostConditionalRenderingCompareValues(VideoCommon::Looku
|
|||
|
||||
if (driver_blocks_pair_resolve || !is_gpu_high) {
|
||||
EndHostConditionalRendering();
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!is_in_bc[0] && !is_in_bc[1]) {
|
||||
|
|
|
|||
|
|
@ -48,8 +48,6 @@ public:
|
|||
|
||||
void ResumeHostConditionalRendering();
|
||||
|
||||
void SetHostConditionalRenderingResult(bool condition_passed);
|
||||
|
||||
bool HostConditionalRenderingCompareValue(VideoCommon::LookupData object_1, bool qc_dirty);
|
||||
|
||||
bool HostConditionalRenderingCompareValues(VideoCommon::LookupData object_1,
|
||||
|
|
|
|||
|
|
@ -1346,10 +1346,6 @@ bool RasterizerVulkan::AccelerateConditionalRendering() {
|
|||
return query_cache.AccelerateHostConditionalRendering();
|
||||
}
|
||||
|
||||
void RasterizerVulkan::SetConditionalRenderingPredicate(bool enabled) {
|
||||
query_cache.SetHostConditionalRenderingResult(enabled);
|
||||
}
|
||||
|
||||
bool RasterizerVulkan::AccelerateSurfaceCopy(const Tegra::Engines::Fermi2D::Surface& src,
|
||||
const Tegra::Engines::Fermi2D::Surface& dst,
|
||||
const Tegra::Engines::Fermi2D::Config& copy_config) {
|
||||
|
|
|
|||
|
|
@ -122,7 +122,6 @@ public:
|
|||
void FlushCommands() override;
|
||||
void TickFrame() override;
|
||||
bool AccelerateConditionalRendering() override;
|
||||
void SetConditionalRenderingPredicate(bool enabled) override;
|
||||
bool AccelerateSurfaceCopy(const Tegra::Engines::Fermi2D::Surface& src,
|
||||
const Tegra::Engines::Fermi2D::Surface& dst,
|
||||
const Tegra::Engines::Fermi2D::Config& copy_config) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue