aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines/engine_upload.cpp
diff options
context:
space:
mode:
authorTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-29 03:39:29 -0400
committerTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-29 03:39:29 -0400
commitea6c1193fbfa95e586bb6d129dc684163a12cb3e (patch)
treee4d23143900184630deeabe27eab1321dac4a428 /src/video_core/engines/engine_upload.cpp
parent0bb5055b6541c74f47603a8dff0569a509cbaf18 (diff)
Revert "Import experimental NS2 support and accumulated GPU fixes"
This reverts commit 535b676970. The Switch 2 support comes from the nx2 work instead, merged next.
Diffstat (limited to 'src/video_core/engines/engine_upload.cpp')
-rw-r--r--src/video_core/engines/engine_upload.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/video_core/engines/engine_upload.cpp b/src/video_core/engines/engine_upload.cpp
index 0ffdae8036..ba21eec4c4 100644
--- a/src/video_core/engines/engine_upload.cpp
+++ b/src/video_core/engines/engine_upload.cpp
@@ -27,7 +27,6 @@ void State::BindRasterizer(VideoCore::RasterizerInterface* rasterizer_) {
void State::ProcessExec(const bool is_linear_) {
write_offset = 0;
- flushed_offset = 0;
copy_size = regs.line_length_in * regs.line_count;
inner_buffer.resize_destructive(copy_size);
is_linear = is_linear_;
@@ -40,29 +39,10 @@ void State::ProcessData(const u32 data, const bool is_last_call) {
if (!is_last_call) {
return;
}
- if (native_partial && is_linear && regs.line_count == 1) {
- const u32 count = write_offset - flushed_offset;
- if (count) {
- rasterizer->AccelerateInlineToMemory(regs.dest.Address() + flushed_offset, count,
- std::span<const u8>{inner_buffer.data() + flushed_offset, count});
- flushed_offset = write_offset;
- }
- return;
- }
ProcessData(inner_buffer);
}
void State::ProcessData(const u32* data, size_t num_data) {
- if (native_partial && is_linear && regs.line_count == 1) {
- const auto count = std::min<size_t>(num_data * sizeof(u32), copy_size - write_offset);
- if (count) {
- rasterizer->AccelerateInlineToMemory(regs.dest.Address() + write_offset, count,
- std::span<const u8>{reinterpret_cast<const u8*>(data), count});
- write_offset += static_cast<u32>(count);
- flushed_offset = write_offset;
- }
- return;
- }
std::span<const u8> read_buffer(reinterpret_cast<const u8*>(data), num_data * sizeof(u32));
ProcessData(read_buffer);
}