Skip to content

Shader model 6.10: Cooperative Vector build fails when disabling optimizations #8433

@mbouchard2

Description

@mbouchard2

Description
Build fails when trying to build a unoptimized shader that uses cooperative vector with shader model 6.10.

Steps to Reproduce
Cooperative Vectors Example here:
https://devblogs.microsoft.com/directx/d3d12-linalg-preview/

Compile with following line:
bin/dxc -I ./include/hlsl -T cs_6_10 -enable-16bit-types -Od

Compiler Explorer link:
https://godbolt.org/z/Ws7rhMfvj

Actual Behavior
Will get following error:
error: validation errors
error: Declaration '%dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
error: Declaration '%dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
error: Declaration '%dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
Validation failed.

Environment

  • DXC version 1.10.2605.2
  • Host Operating System Windows 11

Metadata

Metadata

Assignees

Labels

bugBug, regression, crashneeds-triageAwaiting triage

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions