cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL & Vulkan

Janssen
Journeyman III

Help with cmdsetdepthtestenable.

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?

0 Likes
1 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

 

View solution in original post

0 Likes
5 Replies
dipak
Big Boss

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.

0 Likes

Yes, i updated driver to 22.10.3.
Im using modified vkcube app from LunarG SDK, that printing in console function address of vkCmdSetDepthTestEnable.

 

Untitled.pngScreenshot (321).png

 

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

 

 

0 Likes

Thanks for the above information. I have reported the issue to the Vulkan team.

 

0 Likes

Hey Janssen,

I've reproduced this issue on my side and created ticket: SWDEV-365192 to track it.

Thanks,

Owen

0 Likes

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

 

0 Likes