Skip to content
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

[SPIR-V] SV_ShadingRate as pixel shader input generates invalid SPIR-V #7008

Open
lordOznek opened this issue Nov 14, 2024 · 0 comments
Open
Labels
bug Bug, regression, crash needs-triage Awaiting triage spirv Work related to SPIR-V

Comments

@lordOznek
Copy link

Description
Having SV_ShadingRate semantic value as pixel shader input generates invalid SPIR-V with the following error:

[VUID-StandaloneSpirv-None-04667] In Vulkan, OpTypeStruct must not contain an opaque type. %SamplerStateProvider__Resources = OpTypeStruct %type_sampler %type_sampler %type_sampler %type_sampler %type_sampler %type_sampler %type_sampler %type_sampler %type_sampler %type_sampler

Note: the same code is working for DX12.

Steps to Reproduce
Using dxcompiler.dll on 1.08.2407.07 (July 2024) with the following arguments:
-EMainPS -Tps_6_4 -Gfp -HV 2018 -Zi -Zss -fspv-debug=file -fspv-debug=source -fspv-debug=line -Od -Wno-effects-syntax -Qstrip_debug -Qstrip_rootsignature -spirv -fvk-use-dx-layout -fvk-use-dx-position-w -fspv-target-env=vulkan1.1

Here the godbolt link with a stripped sample code: https://godbolt.org/z/rjrfjzPY5

Actual Behavior
Should output valid Spirv.

Environment

  • DXC version dxcompiler.dll on 1.08.2407.07 (July 2024)
  • Host Operating System Édition
    Windows 10 Entreprise
    Version 22H2
    Installé le ‎09/‎02/‎2023
    Build du système d’exploitation 19045.5011
    Expérience Windows Feature Experience Pack 1000.19060.1000.0
@lordOznek lordOznek added bug Bug, regression, crash needs-triage Awaiting triage spirv Work related to SPIR-V labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash needs-triage Awaiting triage spirv Work related to SPIR-V
Projects
Status: No status
Development

No branches or pull requests

1 participant