Page 1 of 1

bug in GX_SetTexCopyDst (libogc)

Posted: Mon Sep 05, 2011 10:47 pm
by Avatar
Only using the following pair of code lines produces the desired result when copying a texture from EBF to main memory:

Code: Select all

GX_SetTexCopySrc(0, 0, w, h);
GX_SetTexCopyDst(w*2, h*2, GX_TF_IA8, FALSE) // <- factors of 2
Shouldn't it be more like

Code: Select all

GX_SetTexCopySrc(0, 0, w, h);
GX_SetTexCopyDst(w, h, GX_TF_IA8, FALSE)
?

Using the second seemingly correct variant creates untouched bytes flickering around on the screen on actual hardware. The dolphin emulator seems to not care and produces correct results in both cases.

Is this sufficient information? I'll be happy to provide more if need be.

Re: bug in GX_SetTexCopyDst (libogc)

Posted: Mon Sep 19, 2011 9:57 pm
by Avatar
This issue from the sourceforge patches tracker seems to be related, if not the exact same problem:

[libogc] Fix copies to texture targetting GX_TF_IA8 format - ID: 3411308
http://sourceforge.net/tracker/?func=de ... tid=668553