foo master
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sat, 7 Sep 2024 09:44:47 +0000 (12:44 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sat, 7 Sep 2024 09:44:47 +0000 (12:44 +0300)
src/vk.c

index e26a455..648d5b5 100644 (file)
--- a/src/vk.c
+++ b/src/vk.c
@@ -1288,7 +1288,7 @@ static int create_device(void)
 {
        float *prio;
        VkDeviceQueueCreateInfo qinf[MAX_INIT_QUEUE] = {0};
-       VkPhysicalDeviceFeatures feat = {0};
+       /*VkPhysicalDeviceFeatures feat = {0};*/
        VkDeviceCreateInfo devinf = {0};
        const char *ext[ARRSZ(known_devext_list) + 16];
        int i, j, num_ext, qfam, totalq;
@@ -1351,7 +1351,7 @@ static int create_device(void)
        devinf.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
        devinf.pQueueCreateInfos = qinf;
        devinf.queueCreateInfoCount = num_initq;
-       devinf.pEnabledFeatures = &feat;
+       devinf.pEnabledFeatures = 0;/*&feat;*/
        devinf.enabledExtensionCount = num_ext;
        devinf.ppEnabledExtensionNames = ext;
 
@@ -1364,6 +1364,10 @@ static int create_device(void)
                rtprop.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_PROPERTIES_KHR;
                vkGetPhysicalDeviceProperties2(vkpdev, &prop2);
 
+               printf("RT max recursion depth: %u\n", rtprop.maxRayRecursionDepth);
+               printf("RT max hit attrib size: %u\n", rtprop.maxRayHitAttributeSize);
+               printf("RT max ray distpatch: %u\n", rtprop.maxRayDispatchInvocationCount);
+
                devinf.pNext = init_rayext_list();
        }