Skip to content

Assert/internal compiler error when compiling various node shaders with -Od #5597

@tex3d

Description

@tex3d

Description
The compiler asserts on node shaders using output record objects or NodeOutputArrays when using -Od.

Steps to Reproduce

// dxc -T lib_6_8 [Shader("node")] [NodeLaunch("broadcasting")] [NodeDispatchGrid(1, 1, 1)] [NumThreads(128, 1, 1)] void node_1_1( [NodeArraySize(128)] [MaxRecords(64)] NodeOutputArray<RECORD1> OutputArray ) { ThreadNodeOutputRecords<RECORD1> outRec = OutputArray[1].GetThreadNodeOutputRecords(2); outRec.OutputComplete(); }

Actual Behavior
Internal compiler error/assert due to mismatched type for replaceAllUsesWith.

Environment

  • DXC version: v1.8.2306-preview

Metadata

Metadata

Assignees

Labels

bugBug, regression, crashcrashDXC crashing or hitting an assert

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions