Skip to content
Snippets Groups Projects
Commit ca633a5a authored by Subv's avatar Subv
Browse files

GPU: Directly copy the pixels when performing a same-layout DMA.

parent 50ef2beb
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,11 @@ void MaxwellDMA::HandleCopy() { ...@@ -49,7 +49,11 @@ void MaxwellDMA::HandleCopy() {
ASSERT(regs.src_params.pos_y == 0); ASSERT(regs.src_params.pos_y == 0);
ASSERT(regs.dst_params.pos_x == 0); ASSERT(regs.dst_params.pos_x == 0);
ASSERT(regs.dst_params.pos_y == 0); ASSERT(regs.dst_params.pos_y == 0);
ASSERT(regs.exec.is_dst_linear != regs.exec.is_src_linear);
if (regs.exec.is_dst_linear == regs.exec.is_src_linear) {
Memory::CopyBlock(dest_cpu, source_cpu, regs.x_count * regs.y_count);
return;
}
u8* src_buffer = Memory::GetPointer(source_cpu); u8* src_buffer = Memory::GetPointer(source_cpu);
u8* dst_buffer = Memory::GetPointer(dest_cpu); u8* dst_buffer = Memory::GetPointer(dest_cpu);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment