Skip to content

dxcompiler produces raw bitcode module when validation is disabled #6

Closed

Description

@dmpots

When validation is disabled (via /Vd on the dxc command line) the output is a plain llvm bitcode module instead of a dxil container. I would expect the output to be a dxil container with unsigned dxil inside.

λ dxc  t.hlsl /Fo t.fxc /Tps_5_0
λ file t.fxc
t.fxc: data
λ Powershell -Command "Get-Content t.fxc -Encoding Byte -TotalCount 4 | Format-Hex"
  
           Path:
           00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000   44 58 42 43                                      DXBC
  
 
λ dxc /Vd t.hlsl /Fo t2.fxc /Tps_5_0
λ file t2.fxc
t2.fxc: LLVM IR bitcode
λ Powershell -Command "Get-Content t2.fxc -Encoding Byte -TotalCount 4 | Format-Hex"
 
           Path:
           00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000   42 43 C0 DE                                      BCÀÞ

 

Activity

  1. added a commit that references this issue on Jan 9, 2017
    7fc0297
  2. added a commit that references this issue on Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions