Revert "fix license headers"

This commit is contained in:
CamilleLaVey 2026-02-11 19:42:09 -04:00 committed by crueter
parent ca7c1c7230
commit 8bbbd28f48
2 changed files with 6 additions and 7 deletions

View File

@ -91,8 +91,7 @@ bool DmaPusher::Step() {
? (Settings::IsGPULevelMedium() || Settings::IsGPULevelHigh())
: Settings::IsDMALevelSafe();
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);
if (use_safe_read) {
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);
if (direct_span) {
const auto* headers = reinterpret_cast<const CommandHeader*>(direct_span);
for (u32 offset = 0; offset < header_size; offset += bulk_count) {
const u32 count = (std::min)(bulk_count, header_size - offset);
for (u32 offset = 0; offset < header.size; offset += bulk_count) {
const u32 count = (std::min)(bulk_count, header.size - offset);
ProcessCommands(std::span<const CommandHeader>(headers + offset, count),
static_cast<u64>(offset) * sizeof(CommandHeader));
}
} else {
for (u32 offset = 0; offset < header_size; offset += bulk_count) {
const u32 count = (std::min)(bulk_count, header_size - offset);
for (u32 offset = 0; offset < header.size; offset += bulk_count) {
const u32 count = (std::min)(bulk_count, header.size - offset);
command_headers.resize_destructive(count);
const GPUVAddr gpu_addr =
dma_state.dma_get + static_cast<GPUVAddr>(offset) * sizeof(CommandHeader);

View File

@ -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-FileCopyrightText: Copyright 2020 yuzu Emulator Project