Skip to content

New Vulkan validation error related to the depth fixes #11214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hrydgard opened this issue Jun 24, 2018 · 3 comments · Fixed by #11222
Closed

New Vulkan validation error related to the depth fixes #11214

hrydgard opened this issue Jun 24, 2018 · 3 comments · Fixed by #11222
Labels
Milestone

Comments

@hrydgard
Copy link
Owner

hrydgard commented Jun 24, 2018

With the latest SDK, we get the below message when running in debug. This could well be a bug in the old version of glslang we're using to compile our shaders... and might explain the driver issue. We should check the SPIR-V output...

ERROR: [Validation] Code 5 : Object: VK_NULL_HANDLE (Type = 0) | SPIR-V module not valid: Vulkan spec requires DepthReplacing execution mode to be declared when using BuiltIn FragDepth. ID <0> (OpStore) is referencing ID <8> (OpVariable) which is decorated with BuiltIn FragDepth in function <4>.

@hrydgard hrydgard added this to the v1.7.0 milestone Jun 24, 2018
@hrydgard
Copy link
Owner Author

Seems it was added here:

KhronosGroup/glslang@c034c5a

Alright, time to bite the bullet and upgrade glslang. I'll do it soon.

@unknownbrackets
Copy link
Collaborator

unknownbrackets commented Jun 24, 2018

Oh, bah. I guess I'll need to double check that the workaround still works afterward too.

Edit: just a note, this would probably not explain the driver issue, unless there's also an execution mode for whether it uses OpKill. The driver bug was that it ignored OpKill unless the shader wrote to depth.

-[Unknown]

@hrydgard
Copy link
Owner Author

Oh, right. Hm. Well, maybe if the DepthReplacing mode was specified correctly the driver would have taken a different path? Anyway, we can experiment after upgrading glslang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants