#Dynamic states segfaults on Android emulator

8 messages · Page 1 of 1 (latest)

proven moss
#

Is anyone else having issues enabling vulkan dynamic states like depth write, depth test and cull mode and getting crashes on android (when using the Google Android emulator)?

It works fine when I test on my actual phone, but segfaults in the emulator as soon as the vkSetCullMode() is executed.

If I comment it out.. All works fine.

The same code works perfectly on PC on Nvidia, Amd and Intel gpus.

The weird thing is.. When I have those 3 dynamic modes enabled in the pdynamicstates array in the pipelineconfiginfo, then the default values that were set in the config don't work since I commented out the vkSetxxx calls. If I remove those 3 from the pdynamicstates list, then the default values set in the config do work, which indicates the emulator does understand those dynamic states, but for some reason is crashing when I invoke the calls.

If you know of an alternate emulator I can use that does support vulkan 1.3, would appreciate a pointer to it.

Thanks.

ionic wedge
#

are you using vk1.3 with a 1.3 device or are you using the dynamic sate extension?

#

i.e. did you create a vkinstance with vk1.3 and does VkPhysicalDeviceProperties.apiVersion say 1.3+?

proven moss
#

I am requesting / enabling 1.3.. But I should double check if that's what's enabled. I assumed it would error out if it didn't support the version I requested.

#

I am setting the viewport dynamically which isn't causing an issue, so assume 1.3 is enabled

ionic wedge
#

no it wouldn't error cuz you are allowed to use a device.api < instance.api

#

so the api version you are allowed to use is min(instance.api, device.api)

#

vkCmdSetViewport is a 1.0 function