Skip to content

Commit

Permalink
Merge pull request #48 from Pokechu22/efb-copy-invalidate
Browse files Browse the repository at this point in the history
CGX_DoEfbCopyTex: Use DCInvalidateRange instead of DCFlushRange
  • Loading branch information
Pokechu22 authored Apr 23, 2022
2 parents 2967cdc + 6da4dac commit 744226a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gxtest/cgx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void CGX_DoEfbCopyTex(u16 left, u16 top, u16 width, u16 height, u8 dest_format,
reg.clamp_bottom = true;
CGX_LOAD_BP_REG(reg.Hex);

DCFlushRange(dest, GX_GetTexBufferSize(width, height, GX_TF_RGBA8, GX_FALSE, 1));
DCInvalidateRange(dest, GX_GetTexBufferSize(width, height, GX_TF_RGBA8, GX_FALSE, 1));
}

void CGX_DoEfbCopyXfb(u16 left, u16 top, u16 width, u16 src_height, u16 dst_height, void* dest,
Expand Down

0 comments on commit 744226a

Please sign in to comment.