Hello!
I developing small Vulkan API application, and i discovered, that vkGetDeviceProcAddr(dev,"vkCmdSetDepthTestEnable") returns NULL on AMD GPU, but on NVIDIA returns pointer to the function.
Test applications are same on both computers.
NVIDIA GPU: 1060, 516.94 driver
AMD GPU: 6750XT, 22.10.2 driver.
Why this happen?
Solved! Go to Solution.
Hey Janssen,
"vkCmdSetDepthTestEnable" is added in 1.3.0 version of the API.
In vkCreateInstance if you set VkApplicationInfo's apiVersion = VK_API_VERSION_1_3
It should fix the issue.
Thanks,
Owen
Hi @Janssen ,
Thank you for reporting it. I have whitelisted you and moved the post to the Vulkan forum.
Can you please try the latest driver available here: Adrenalin 22.10.3 ?
If the issue still persists, please provide a minimal test-case that reproduces the issue. I will report it to the Vulkan team.
Thanks.
Yes, i updated driver to 22.10.3.
Im using modified vkcube app from LunarG SDK, that printing in console function address of vkCmdSetDepthTestEnable.
err = vkCreateDevice(demo->gpu, &device, NULL, &demo->device);
{
AllocConsole();
freopen("CONOUT$", "w", stdout);
void* CSDTE = vkGetDeviceProcAddr(demo->device, "vkCmdSetDepthTestEnable");
void* CD = vkGetDeviceProcAddr(demo->device, "vkCmdDraw");
printf("vkCmdSetDepthTestEnable is %p\n", CSDTE);
printf("vkCmdDraw is %p\n", CD);
}
Thanks for the above information. I have reported the issue to the Vulkan team.
Hey Janssen,
I've reproduced this issue on my side and created ticket: SWDEV-365192 to track it.
Thanks,
Owen
Hey Janssen,
"vkCmdSetDepthTestEnable" is added in 1.3.0 version of the API.
In vkCreateInstance if you set VkApplicationInfo's apiVersion = VK_API_VERSION_1_3
It should fix the issue.
Thanks,
Owen