reverted DISABLE_CELL_DMA_READ_ONLY

commented out printf
This commit is contained in:
erwin.coumans
2008-04-01 00:29:21 +00:00
parent a151ec1c73
commit 64df6edf39
3 changed files with 2 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ SpuBatchRaycaster::setCollisionObjectsSkipPE (btCollisionObjectArray& castUponOb
index++;
}
printf("Number of shapes bullet is casting against: %d\n", numNonPEShapes);
// printf("Number of shapes bullet is casting against: %d\n", numNonPEShapes);
btAssert (index == numNonPEShapes);
}

View File

@@ -298,11 +298,8 @@ void dmaBvhShapeData (bvhMeshShape_LocalStoreMemory* bvhMeshShape, btBvhTriangle
dmaSize = sizeof(btTriangleIndexVertexArray);
dmaPpuAddress2 = reinterpret_cast<ppu_address_t>(triMeshShape->getMeshInterface());
// spu_printf("trimeshShape->getMeshInterface() == %llx\n",dmaPpuAddress2);
#ifdef DISABLE_CELL_DMA_GET_READ_ONLY // needed for PE ray caster
cellDmaGet(&bvhMeshShape->gTriangleMeshInterfaceStorage, dmaPpuAddress2 , dmaSize, DMA_TAG(1), 0, 0);
#else
bvhMeshShape->gTriangleMeshInterfacePtr = (btTriangleIndexVertexArray*)cellDmaGetReadOnly(&bvhMeshShape->gTriangleMeshInterfaceStorage, dmaPpuAddress2 , dmaSize, DMA_TAG(1), 0, 0);
#endif
//cellDmaWaitTagStatusAll(DMA_MASK(1));
///now DMA over the BVH