DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

SER test files fail validation when compiled with -Od

Open jeffnn opened this issue 1 year ago • 1 comments

Description I compiled a couple of the existing SER test hlsl files with -Od (they are all currently invoked with -O3). dxc produces validation errors that are not shown when -O3 is used.

Steps to Reproduce dxc.exe -T lib_6_9 -Od \tools\clang\test\CodeGenDXIL\hlsl\intrinsics\maybereorder.hlsl error: validation errors error: Declaration '%dx.types.HitObject = type { i8* }' uses a reserved prefix. error: Pointers to pointers, or pointers in structures are not allowed. error: Declaration '%dx.types.HitObject = type { i8* }' uses a reserved prefix. error: Pointers to pointers, or pointers in structures are not allowed. error: Declaration '%dx.types.HitObject = type { i8* }' uses a reserved prefix. error: Pointers to pointers, or pointers in structures are not allowed. error: Declaration '%dx.types.HitObject = type { i8* }' uses a reserved prefix. error: Pointers to pointers, or pointers in structures are not allowed. Validation failed.

Actual Behavior Expected no validation errors, as is the case when -O3 is used instead of -Od

Environment

  • DXC version: dxcompiler.dll: 1.9 - 1.8.0.14709 (main, 0e7591a6e); dxil.dll: 1.9(1.8.0.14709)
  • Host Operating System: 23H2 22635.5305

jeffnn avatar Apr 28 '25 18:04 jeffnn

Thanks for reporting! Assign to me, i'll fix it.

simoll avatar Apr 28 '25 19:04 simoll