bug in dma size calculation

This commit is contained in:
ejcoumans 2007-06-13 23:05:37 +00:00
parent effb5a8b62
commit 0fb0b6056c

View File

@ -657,7 +657,7 @@ void processCollisionTask(void* userPtr, void* lsMemPtr)
{
{
int dmaSize = numPairs*sizeof(SpuGatherAndProcessPairsTaskDesc);
int dmaSize = numPairs*sizeof(btBroadphasePair);
uint64_t dmaPpuAddress = wuInputs[j].m_pairArrayPtr+wuInputs[j].m_startIndex * sizeof(btBroadphasePair);
cellDmaGet(&lsMem.gBroadphasePairs, dmaPpuAddress , dmaSize, DMA_TAG(1), 0, 0);
cellDmaWaitTagStatusAll(DMA_MASK(1));