Skip to content

Commit d376abf

Browse files
Joao SaffranJoao Saffran
authored andcommitted
address comments
1 parent 74980c8 commit d376abf

8 files changed

+9
-13
lines changed

llvm/include/llvm/Support/DXILABI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ enum class SamplerFeedbackType : uint32_t {
101101
const unsigned MinWaveSize = 4;
102102
const unsigned MaxWaveSize = 128;
103103

104-
LLVM_ABI ArrayRef<EnumEntry<llvm::dxil::ResourceClass>> getResourceClasses();
104+
LLVM_ABI ArrayRef<EnumEntry<ResourceClass>> getResourceClasses();
105105

106106
LLVM_ABI StringRef getResourceClassName(ResourceClass RC);
107107

llvm/lib/Support/DXILABI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17-
#include "llvm/BinaryFormat/DXContainer.h"
17+
#include "llvm/Support/DXILABI.h"
1818
#include "llvm/Support/ScopedPrinter.h"
1919
using namespace llvm;
2020

llvm/test/CodeGen/DirectX/rootsignature-validation-fail-cbuffer-range.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ entry:
66
ret void
77
}
88

9-
; RootConstants(num32BitConstants=4, b2), DescriptorTable(CBV(b0, numDescriptors=3))
109
!dx.rootsignatures = !{!0}
10+
1111
!0 = !{ptr @CSMain, !1, i32 2}
1212
!1 = !{!2, !3}
1313
!2 = !{!"RootConstants", i32 0, i32 2, i32 0, i32 4}

llvm/test/CodeGen/DirectX/rootsignature-validation-fail-descriptor-table-range.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
; RUN: not opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s 2>&1 | FileCheck %s
22
; CHECK: error: resource UAV (space=10, registers=[4294967295, 4294967295]) overlaps with resource UAV (space=10, registers=[4294967295, 4294967295])
3+
34
define void @CSMain() "hlsl.shader"="compute" {
45
entry:
56
ret void
67
}
78

8-
; DescriptorTable(UAV(u0, numDescriptors=unbounded)), DescriptorTable(UAV(u2, numDescriptors=4))
99
!dx.rootsignatures = !{!0}
10+
1011
!0 = !{ptr @CSMain, !1, i32 2}
1112
!1 = !{!2, !4}
1213
!2 = !{!"DescriptorTable", i32 0, !3}

llvm/test/CodeGen/DirectX/rootsignature-validation-fail-root-descriptor-range.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ entry:
77
}
88

99
!dx.rootsignatures = !{!0}
10+
1011
!0 = !{ptr @CSMain, !1, i32 2}
1112
!1 = !{!2, !4}
1213
!2 = !{!"RootUAV", i32 0, i32 3, i32 1, i32 4}

llvm/test/CodeGen/DirectX/rootsignature-validation-fail-sampler.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ entry:
77
}
88

99
!dx.rootsignatures = !{!0}
10+
1011
!0 = !{ptr @CSMain, !1, i32 2}
1112
!1 = !{!2, !3}
1213
!2 = !{ !"StaticSampler", i32 5, i32 4, i32 5, i32 3, float 0x3FF7CCCCC0000000, i32 10, i32 2, i32 1, float -1.270000e+02, float 1.220000e+02, i32 42, i32 0, i32 0 }

llvm/test/CodeGen/DirectX/rootsignature-validation-fail-static-sampler-range.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ entry:
77
}
88

99
!dx.rootsignatures = !{!0}
10+
1011
!0 = !{ptr @CSMain, !1, i32 2}
1112
!1 = !{!2, !3}
1213
!2 = !{ !"StaticSampler", i32 5, i32 4, i32 5, i32 3, float 0x3FF7CCCCC0000000, i32 10, i32 2, i32 1, float -1.270000e+02, float 1.220000e+02, i32 42, i32 0, i32 0 }

llvm/test/CodeGen/DirectX/rootsignature-validation.ll

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
; RUN: opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s
2-
; expected-no-diagnostics
3-
4-
5-
; Root Signature(
6-
; CBV(b3, space=1, visibility=SHADER_VISIBILITY_ALL)
7-
; DescriptorTable(SRV(t0, space=0, numDescriptors=1), visibility=SHADER_VISIBILITY_ALL)
8-
; DescriptorTable(Sampler(s0, numDescriptors=2), visibility=SHADER_VISIBILITY_VERTEX)
9-
; DescriptorTable(UAV(u0, numDescriptors=unbounded), visibility=SHADER_VISIBILITY_ALL)
10-
2+
; We have a valid root signature, this should compile successfully
113

124
define void @CSMain() "hlsl.shader"="compute" {
135
entry:

0 commit comments

Comments
 (0)