mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 12:22:46 +00:00
Merge pull request #2212 from ReinUsesLisp/dma-push-fix
dma_pusher: Store command_list_header by copy
This commit is contained in:
commit
d10dffed44
|
@ -39,7 +39,7 @@ bool DmaPusher::Step() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const CommandList& command_list{dma_pushbuffer.front()};
|
const CommandList& command_list{dma_pushbuffer.front()};
|
||||||
const CommandListHeader& command_list_header{command_list[dma_pushbuffer_subindex++]};
|
const CommandListHeader command_list_header{command_list[dma_pushbuffer_subindex++]};
|
||||||
GPUVAddr dma_get = command_list_header.addr;
|
GPUVAddr dma_get = command_list_header.addr;
|
||||||
GPUVAddr dma_put = dma_get + command_list_header.size * sizeof(u32);
|
GPUVAddr dma_put = dma_get + command_list_header.size * sizeof(u32);
|
||||||
bool non_main = command_list_header.is_non_main;
|
bool non_main = command_list_header.is_non_main;
|
||||||
|
|
Loading…
Reference in a new issue