ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.06k stars 1.27k forks source link

Vulkan: distort_cs.spv not a valid shader, stuck on Submit #658

Open KaneTW opened 6 years ago

KaneTW commented 6 years ago

I get the following error after submitting a Vulkan texture:

shaders/vulkan/distort_cs.spv
"SPIR-V module not valid: Codesize must be a multiple of 4 but is 15006. The spec valid usage text states 'If pCode points to SPIR-V code, codeSize must be a multiple of 4' (https://www.khronos.org/registry/vulkan/specs/1.0-extensions/html/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-01376)"

This causes the program to hang when Submit-ing images.

Removing distort_cs.spv makes it continue normally, but that's not really tenable since that causes vrcompositor to not start.

Plagman commented 6 years ago

Thanks for the report; we're looking into fixing this. You can work around this issue by either disabling SPIRV validation on your local app or padding that file with two extra bytes for the time being.