 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
willow :--)
Joined: 13 Jan 2007 Posts: 126
|
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Fri Dec 04, 2009 7:52 pm Post subject: |
|
|
Short answer: No, sceGuGetMemory won't return unaligned data if your initial display list provided in sceGuStart was aligned properly.
In detail: This is made sure, by aligning the allocated size on 32bit (first 3 lines in the code, size = ((size + 3) >> 2) << 2), hence every following allocation will again start at a 32bit aligned address.
The other code just stores an "gu optimized" address scheme in the first 8 byte of the allocated buffer, hence again not breaking the 32bit alignment.
What tests exactly did you do, to come to the conclusion that the address returned isn't 32bit aligned? _________________ <Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl |
|
| Back to top |
|
 |
willow :--)
Joined: 13 Jan 2007 Posts: 126
|
Posted: Fri Dec 04, 2009 8:07 pm Post subject: |
|
|
I printed the result of sceGuGetMeMory (the pointer).
But it was actually correct, I was expecting it to be 32bytes aligned instead of 4bytes.
Thanks for the answer :) _________________ Wagic. Play that card game against an AI on your PSP |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|