- use mfc directly, instead of cellDmaSmallGet (allow sizes under 32 bytes, instead of 16)
- align btBroadphaseProxy to 16 bytes
This commit is contained in:
@@ -9,7 +9,9 @@
|
|||||||
///this unalignedDma should not be frequently used, only for small data. It handles alignment and performs check on size (<16 bytes)
|
///this unalignedDma should not be frequently used, only for small data. It handles alignment and performs check on size (<16 bytes)
|
||||||
int stallingUnalignedDmaSmallGet(void *ls, uint64_t ea, uint32_t size)
|
int stallingUnalignedDmaSmallGet(void *ls, uint64_t ea, uint32_t size)
|
||||||
{
|
{
|
||||||
btAssert(size<16);
|
|
||||||
|
btAssert(size<32);
|
||||||
|
|
||||||
ATTRIBUTE_ALIGNED16(char tmpBuffer[32]);
|
ATTRIBUTE_ALIGNED16(char tmpBuffer[32]);
|
||||||
|
|
||||||
char* mainMem = (char*)ea;
|
char* mainMem = (char*)ea;
|
||||||
@@ -31,7 +33,7 @@ int stallingUnalignedDmaSmallGet(void *ls, uint64_t ea, uint32_t size)
|
|||||||
}
|
}
|
||||||
#endif //USE_MEMCPY
|
#endif //USE_MEMCPY
|
||||||
#else
|
#else
|
||||||
cellDmaSmallGet(tmpTarget,ea,size,DMA_TAG(1),0,0);
|
mfc_get(tmpTarget,ea,size,DMA_TAG(1),0,0);
|
||||||
//copy into final destination
|
//copy into final destination
|
||||||
#endif //WIN32
|
#endif //WIN32
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -64,8 +64,7 @@ CONCAVE_SHAPES_END_HERE,
|
|||||||
|
|
||||||
|
|
||||||
///btBroadphaseProxy
|
///btBroadphaseProxy
|
||||||
//ATTRIBUTE_ALIGNED16(struct) btBroadphaseProxy
|
ATTRIBUTE_ALIGNED16(struct) btBroadphaseProxy
|
||||||
struct btBroadphaseProxy
|
|
||||||
{
|
{
|
||||||
|
|
||||||
BT_DECLARE_ALIGNED_ALLOCATOR();
|
BT_DECLARE_ALIGNED_ALLOCATOR();
|
||||||
|
|||||||
Reference in New Issue
Block a user