Skip to content

Commit

Permalink
rpcsx-gpu: IT_DMA_DATA: fix memory fill with constant
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Oct 4, 2024
1 parent 759616e commit 5761bb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpcsx-gpu/Pipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,17 +974,18 @@ bool GraphicsPipe::dmaData(Queue &queue) {
case 2:
src = &data;
srcSize = sizeof(data);
saic = 1;
break;

default:
rx::die("IT_DMA_DATA: unexpected srcSel %u", srcSel);
}

rx::dieIf(size > srcSize,
rx::dieIf(size > srcSize && saic == 0,
"IT_DMA_DATA: out of source size srcSel %u, dstSel %u, size %u",
srcSel, dstSel, size);

if (saic != 0 && srcSel == 0 && sas == 1) {
if (saic != 0) {
if (daic != 0 && dstSel == 0 && das == 1) {
std::memcpy(dst, src, sizeof(std::uint32_t));
} else {
Expand Down

0 comments on commit 5761bb0

Please sign in to comment.