-
Notifications
You must be signed in to change notification settings - Fork 406
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
Layers: (SC) check PointSize valid usage #8
Comments
Comment by chrisforbes (MIGRATED) Seems like a reasonable thing to want, and shouldn't be a big deal to implement. I'm not convinced you've got the rules quite right, but I'll work from the spec. |
Comment by jekstrand (MIGRATED) +1 I just hit this in a CTS test where they were using tessellation with point_mode but weren't setting The correct rules for this are fairly subtle. If you only have a vertex shader, then you must write |
Comment by zeux (MIGRATED) We've hit this issue as well - on some Android devices neglecting to output gl_PointSize results in a random value getting fed to the rasterizer, which can be hard to track down without a graphics debugger if the result of rasterization isn't directly visible on the screen... IOW +1 - this is easy to miss and needs to be validated. |
Need to address @chrisforbes review findings in PR #261. |
This commit adds checks regarding: - Store ops for potentially transient images - Framebuffer attachments that should/should not be transient - Clearing attachments after load - Many instanced vertex buffers in a pipeline This corresponds to checks KhronosGroup#8, KhronosGroup#10-11, KhronosGroup#14 and KhronosGroup#32 from PerfDoc.
This commit adds checks regarding: - Store ops for potentially transient images - Framebuffer attachments that should/should not be transient - Clearing attachments after load - Many instanced vertex buffers in a pipeline This corresponds to checks KhronosGroup#8, KhronosGroup#10-11, KhronosGroup#14 and KhronosGroup#32 from PerfDoc.
This commit adds checks regarding: - Store ops for potentially transient images - Framebuffer attachments that should/should not be transient - Clearing attachments after load - Many instanced vertex buffers in a pipeline This corresponds to checks KhronosGroup#8, KhronosGroup#10-11, KhronosGroup#14 and KhronosGroup#32 from PerfDoc.
This commit adds checks regarding: - Store ops for potentially transient images - Framebuffer attachments that should/should not be transient - Clearing attachments after load - Many instanced vertex buffers in a pipeline This corresponds to checks KhronosGroup#8, KhronosGroup#10-11, KhronosGroup#14 and KhronosGroup#32 from PerfDoc.
This commit adds checks regarding: - Store ops for potentially transient images - Framebuffer attachments that should/should not be transient - Clearing attachments after load - Many instanced vertex buffers in a pipeline This corresponds to checks KhronosGroup#8, KhronosGroup#10-11, KhronosGroup#14 and KhronosGroup#32 from PerfDoc.
Issue by yavn (MIGRATED)
Friday Sep 23, 2016 at 13:37 GMT
Originally opened as KhronosGroup/Vulkan-LoaderAndValidationLayers#974
This is a feature request.
It seems that Vulkan requires (similar to GLES) that
PointSize
is written in VS when the vertex pipeline is outputting points. It would be nice if layer could detect this situation and report an error ifPointSize
is not assigned to in the shader.Please check the spec for details. From what I understood, this only applies if vertex shader is the only active vertex stage, and only if drawing points (
VK_PRIMITIVE_TOPOLOGY_POINT_LIST
). In other stages the point size is 1.0 by default and there are other rules (e.g. seeshaderTessellationAndGeometryPointSize
feature).The text was updated successfully, but these errors were encountered: