brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 4b1f56e Raw
99 lines · plain
1## Tests that the copied DXContainer correctly retains only the RTS0 part even2## when it was defined to be removed.3 4# RUN: yaml2obj %s -o %t5# RUN: llvm-objcopy --remove-section=RTS0 --only-section=RTS0 %t %t.out6# RUN: obj2yaml %t.out | FileCheck %s --implicit-check-not=Name:7 8## The DXContainer described below was generated with:9 10## `clang-dxc -T cs_6_7 test.hlsl /Fo temp.dxo`11## `obj2yaml temp.dxo`12 13## ``` test.hlsl14## [RootSignature("")]15## [numthreads(1,1,1)]16## void main() {}17## ```18 19## FileSize = 32 + 24 (RTS0 content) + 4 (1 part offset) + 8 (1 part header)20##          = 6821# CHECK:      FileSize:       6822# CHECK-NEXT: PartCount:      123# CHECK-NEXT: PartOffsets:     [ 36 ]24# CHECK-NEXT: Parts25# CHECK-NEXT: Name: RTS026 27--- !dxcontainer28Header:29  Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,30                     0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]31  Version:32    Major:           133    Minor:           034  FileSize:        198435  PartCount:       736  PartOffsets:     [ 60, 1792, 1808, 1836, 1852, 1868, 1900 ]37Parts:38  - Name:            DXIL39    Size:            172440    Program:41      MajorVersion:    642      MinorVersion:    743      ShaderKind:      544      Size:            2845      DXILMajorVersion: 146      DXILMinorVersion: 747      DXILSize:        448      DXIL:            [ 0x42, 0x43, 0xC0, 0xDE, ]49  - Name:            SFI050    Size:            851  - Name:            HASH52    Size:            2053    Hash:54      IncludesSource:  false55      Digest:          [ 0x9F, 0xD1, 0xD9, 0xE2, 0x49, 0xFB, 0x3A, 0x6C,56                         0x8C, 0x14, 0x8A, 0x96, 0x1C, 0x7D, 0x85, 0xA9 ]57  - Name:            ISG158    Size:            859    Signature:60      Parameters:      []61  - Name:            OSG162    Size:            863    Signature:64      Parameters:      []65  - Name:            RTS066    Size:            2467    RootSignature:68      Version:         269      NumRootParameters: 070      RootParametersOffset: 2471      NumStaticSamplers: 072      StaticSamplersOffset: 2473      Parameters:      []74  - Name:            PSV075    Size:            7676    PSVInfo:77      Version:         378      ShaderStage:     579      MinimumWaveLaneCount: 080      MaximumWaveLaneCount: 429496729581      UsesViewID:      082      SigInputVectors: 083      SigOutputVectors: [ 0, 0, 0, 0 ]84      NumThreadsX:     185      NumThreadsY:     186      NumThreadsZ:     187      EntryName:       main88      ResourceStride:  2489      Resources:       []90      SigInputElements: []91      SigOutputElements: []92      SigPatchOrPrimElements: []93      InputOutputMap:94        - [  ]95        - [  ]96        - [  ]97        - [  ]98...99