Allocation in the PVR :
Code: Select all
pvr_ptr_t pvr_mem_malloc(size_t size);
Code: Select all
void pvr_txr_load(void * src, pvr_ptr_t dst, uint32 count);
The pvr_mem_malloc seems to use in size parameter the size of a texture in bytes.
The pvr_txr_load seems to use in count parameter the size of a texture in Uint16s.
Assuming we have a 8*8 pixel squared texture :
we must use pvr_mem_malloc with size = 8*8*2 bytes and pvr_txr_load with count = 8*8
Is that correct ?
Thanks for help.