1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-01-19 11:52:16 +01:00

added hardware info printing

This commit is contained in:
yours3lf 2020-06-18 19:54:24 +01:00
parent f70052af6b
commit 2dcafeca19

View File

@ -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);