Skip to content

[SPIR-V] [outputcontrolpoints(0)] or missing outputcontrolpoints Hull stage attribute crash the compiler (works with DXIL backend) #3733

@Dredhog

Description

@Dredhog

Title

[SPIR-V] [outputcontrolpoints(0)] or missing outputcontrolpoints Hull stage attribute crash the compiler (works with DXIL backend)

Functional impact

Cannot produce hull shaders that don't have any control point output (e.g. when only patch data is needed for the domain stage)

Minimal repro steps

  1. Compile the following shader with dxc.exe -T hs_6_0 -E Hull -spirv repro_shader.txt:
    repro_shader.txt
    or do dxc.exe -T hs_6_0 -E Hull -spirv repro_shader_no_attribute.txt
    repro_shader_no_attribute.txt

Expected result

Compilation succeeds with control point output count being zero

Actual result

Compiler crashes with output:
Internal compiler error: access violation. Attempted to read from address 0x0000000000000020

Further technical details

Used DXC release v1.6.2104 (e09a454)

Metadata

Metadata

Assignees

Labels

spirvWork related to SPIR-V

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions