diff --git a/driver/instance.c b/driver/instance.c index 7c309e7..3ae937c 100644 --- a/driver/instance.c +++ b/driver/instance.c @@ -226,31 +226,33 @@ VKAPI_ATTR VkResult VKAPI_CALL RPIFUNC(vkCreateInstance)( char IDstring[] = { 0, 0, 0, 0 }; memcpy(IDstring, &(*pInstance)->IDstrUINT, 3); -// printf("------------------------------------------\n"); -// printf("------------------------------------------\n"); -// printf("V3D chip info: \n"); -// printf("IDstring %s\n", IDstring); -// printf("technologyVersion: %u\n", (*pInstance)->technologyVersion); -// printf("v3dRevision %u\n", (*pInstance)->v3dRevision); -// printf("vpmMemorySize %u\n", (*pInstance)->vpmMemorySize); -// printf("numSemaphores %u\n", (*pInstance)->numSemaphores); -// printf("numTMUperSlice %u\n", (*pInstance)->numTMUperSlice); -// printf("numQPUperSlice %u\n", (*pInstance)->numQPUperSlice); -// printf("numSlices %u\n", (*pInstance)->numSlices); -// printf("tileBufferSize %s\n", (*pInstance)->tileBufferSize > 0 ? -// (*pInstance)->tileBufferSize > 1 ? "full" : "half" : "quarter"); -// printf("vriMemorySize %s\n", (*pInstance)->vriMemorySize ? "full" : "half"); -// printf("hdrSupported %u\n", (*pInstance)->hdrSupported); -// printf("tileBufferDoubleBufferModeSupported %u\n", (*pInstance)-> tileBufferDoubleBufferModeSupported); -// printf("hasTiling %u\n", (*pInstance)->hasTiling); -// printf("hasControlFlow %u\n", (*pInstance)->hasControlFlow); -// printf("hasEtc1 %u\n", (*pInstance)->hasEtc1); -// printf("hasThreadedFs %u\n", (*pInstance)->hasThreadedFs); -// printf("hasMadvise %u\n", (*pInstance)->hasMadvise); -// printf("hasPerfmon %u\n", (*pInstance)->hasPerfmon); -// printf("hasFixedRCLorder %u\n", (*pInstance)->hasFixedRCLorder); -// printf("------------------------------------------\n"); -// printf("------------------------------------------\n"); +#ifndef RPI_PRINT_HARDWARE_INFO + #define RPI_PRINT_HARDWARE_INFO 0 +#endif + +#if RPI_PRINT_HARDWARE_INFO == 1 + printf("\nV3D chip info: \n"); + printf("IDstring %s\n", IDstring); + printf("technologyVersion: %u\n", (*pInstance)->technologyVersion); + printf("v3dRevision %u\n", (*pInstance)->v3dRevision); + printf("vpmMemorySize %u\n", (*pInstance)->vpmMemorySize); + printf("numSemaphores %u\n", (*pInstance)->numSemaphores); + printf("numTMUperSlice %u\n", (*pInstance)->numTMUperSlice); + printf("numQPUperSlice %u\n", (*pInstance)->numQPUperSlice); + printf("numSlices %u\n", (*pInstance)->numSlices); + printf("tileBufferSize %s\n", (*pInstance)->tileBufferSize > 0 ? + (*pInstance)->tileBufferSize > 1 ? "full" : "half" : "quarter"); + printf("vriMemorySize %s\n", (*pInstance)->vriMemorySize ? "full" : "half"); + printf("hdrSupported %u\n", (*pInstance)->hdrSupported); + printf("tileBufferDoubleBufferModeSupported %u\n", (*pInstance)-> tileBufferDoubleBufferModeSupported); + printf("hasTiling %u\n", (*pInstance)->hasTiling); + printf("hasControlFlow %u\n", (*pInstance)->hasControlFlow); + printf("hasEtc1 %u\n", (*pInstance)->hasEtc1); + printf("hasThreadedFs %u\n", (*pInstance)->hasThreadedFs); + printf("hasMadvise %u\n", (*pInstance)->hasMadvise); + printf("hasPerfmon %u\n", (*pInstance)->hasPerfmon); + printf("hasFixedRCLorder %u\n", (*pInstance)->hasFixedRCLorder); +#endif assert((*pInstance)->hasTiling); assert((*pInstance)->hasControlFlow);