Permalink
Browse files

Fixed black pixels issue in rsxSetTransferImage, when srcX or srcY ar…

…e non zero.
  • Loading branch information...
1 parent bd1799a commit 7be8a6a8809d8c6f3940055fd6081ef02e3d3b94 @zerkman zerkman committed Sep 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ppu/librsx/commands.c
View
@@ -944,7 +944,7 @@ void rsxSetTransferImage(gcmContextData *context,const u8 mode,const u32 dstOffs
RSX_CONTEXT_CURRENTP[20] = (16 << 16);
RSX_CONTEXT_CURRENTP[21] = RSX_SUBCHANNEL_METHOD(6,NV03_SCALED_IMAGE_FROM_MEMORY_IMAGE_IN_SIZE,4);
- RSX_CONTEXT_CURRENTP[22] = ((height << 16) | width);
+ RSX_CONTEXT_CURRENTP[22] = (((height + ((srcY+15)>>4)) << 16) | (width + ((srcX+15)>>4)));
RSX_CONTEXT_CURRENTP[23] = (srcPitch | (GCM_TRANSFER_ORIGIN_CORNER << 16) | (GCM_TRANSFER_INTERPOLATOR_NEAREST << 24));
RSX_CONTEXT_CURRENTP[24] = srcOffset;
RSX_CONTEXT_CURRENTP[25] = ((srcY << 16) | srcX);

0 comments on commit 7be8a6a

Please sign in to comment.