// Write section header.
W.write<char>(ArrayRef<char>(Sec.getName().data(), 4));
- uint64_t PartSize = SectionSize + sizeof(dxbc::PartHeader);
+ uint64_t PartSize = SectionSize;
if (Sec.getName() == "DXIL")
PartSize += sizeof(dxbc::ProgramHeader);
; DXC-NEXT: MajorVersion: 6
; DXC-NEXT: MinorVersion: 5
; DXC-NEXT: ShaderKind: 6
-; DXC-NEXT: Size: [[#div(SIZE,4) - 2]]
+; DXC-NEXT: Size: [[#div(SIZE,4)]]
; DXC-NEXT: DXILMajorVersion: [[#]]
; DXC-NEXT: DXILMinorVersion: [[#]]
-; DXC-NEXT: DXILSize: [[#SIZE - 32]]
+; DXC-NEXT: DXILSize: [[#SIZE - 24]]
; DXC-NEXT: DXIL: [ 0x42, 0x43, 0xC0, 0xDE,
; DXC: - Name: SFI0
-; DXC-NEXT: Size: 16
+; DXC-NEXT: Size: 8
; DXC-NOT: Flags: