mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-05 21:48:55 +00:00
Revert "fix license headers"
This commit is contained in:
@@ -91,8 +91,7 @@ bool DmaPusher::Step() {
|
|||||||
? (Settings::IsGPULevelMedium() || Settings::IsGPULevelHigh())
|
? (Settings::IsGPULevelMedium() || Settings::IsGPULevelHigh())
|
||||||
: Settings::IsDMALevelSafe();
|
: Settings::IsDMALevelSafe();
|
||||||
constexpr u32 bulk_count = 32;
|
constexpr u32 bulk_count = 32;
|
||||||
const u32 header_size = static_cast<u32>(header.size);
|
const size_t total_size = static_cast<size_t>(header.size);
|
||||||
const size_t total_size = static_cast<size_t>(header_size);
|
|
||||||
const size_t total_bytes = total_size * sizeof(CommandHeader);
|
const size_t total_bytes = total_size * sizeof(CommandHeader);
|
||||||
if (use_safe_read) {
|
if (use_safe_read) {
|
||||||
memory_manager.FlushRegion(dma_state.dma_get, total_bytes);
|
memory_manager.FlushRegion(dma_state.dma_get, total_bytes);
|
||||||
@@ -101,14 +100,14 @@ bool DmaPusher::Step() {
|
|||||||
const u8* direct_span = memory_manager.GetSpan(dma_state.dma_get, total_bytes);
|
const u8* direct_span = memory_manager.GetSpan(dma_state.dma_get, total_bytes);
|
||||||
if (direct_span) {
|
if (direct_span) {
|
||||||
const auto* headers = reinterpret_cast<const CommandHeader*>(direct_span);
|
const auto* headers = reinterpret_cast<const CommandHeader*>(direct_span);
|
||||||
for (u32 offset = 0; offset < header_size; offset += bulk_count) {
|
for (u32 offset = 0; offset < header.size; offset += bulk_count) {
|
||||||
const u32 count = (std::min)(bulk_count, header_size - offset);
|
const u32 count = (std::min)(bulk_count, header.size - offset);
|
||||||
ProcessCommands(std::span<const CommandHeader>(headers + offset, count),
|
ProcessCommands(std::span<const CommandHeader>(headers + offset, count),
|
||||||
static_cast<u64>(offset) * sizeof(CommandHeader));
|
static_cast<u64>(offset) * sizeof(CommandHeader));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (u32 offset = 0; offset < header_size; offset += bulk_count) {
|
for (u32 offset = 0; offset < header.size; offset += bulk_count) {
|
||||||
const u32 count = (std::min)(bulk_count, header_size - offset);
|
const u32 count = (std::min)(bulk_count, header.size - offset);
|
||||||
command_headers.resize_destructive(count);
|
command_headers.resize_destructive(count);
|
||||||
const GPUVAddr gpu_addr =
|
const GPUVAddr gpu_addr =
|
||||||
dma_state.dma_get + static_cast<GPUVAddr>(offset) * sizeof(CommandHeader);
|
dma_state.dma_get + static_cast<GPUVAddr>(offset) * sizeof(CommandHeader);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
||||||
|
|||||||
Reference in New Issue
Block a user