Skip to content

Commit

Permalink
fixed texture copy
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanr13 committed Jan 3, 2025
1 parent 4152f0a commit 7ffdd35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/services/gsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ void gsp_handle_command(E3DS* s) {
u32 gapout = cmds->d[cmds->cur].args[4] >> 16;
u32 flags = cmds->d[cmds->cur].args[5];

pitchin <<= 4;
gapin <<= 4;
pitchout <<= 4;
gapout <<= 4;

linfo("texture copy from %x(pitch=%d,gap=%d) to "
"%x(pitch=%d,gap=%d), size=%d, flags=%x",
addrin, pitchin, gapin, addrout, pitchout, gapout, copysize,
Expand Down

0 comments on commit 7ffdd35

Please sign in to comment.