Skip to content

Commit aba77f9

Browse files
committed
fix test
1 parent 901bd1d commit aba77f9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
; Valid scenario where shader stage is not blocked from accessing root bindings
33
target triple = "dxil-pc-shadermodel6.6-geometry"
44

5-
define void @CSMain() #0 {
5+
%__cblayout_CB = type <{ float }>
6+
7+
@CB.str = private unnamed_addr constant [3 x i8] c"CB\00", align 1
8+
9+
define void @CSMain() "hlsl.shader"="geometry" {
610
entry:
11+
%CB = tail call target("dx.CBuffer", target("dx.Layout", %__cblayout_CB, 4, 0)) @llvm.dx.resource.handlefrombinding(i32 0, i32 2, i32 1, i32 0, ptr nonnull @CB.str)
712
ret void
813
}
914
attributes #0 = { noinline nounwind "exp-shader"="cs" "hlsl.numthreads"="1,2,1" "hlsl.shader"="geometry" }
@@ -13,4 +18,4 @@ attributes #0 = { noinline nounwind "exp-shader"="cs" "hlsl.numthreads"="1,2,1"
1318
!0 = !{ptr @CSMain, !1, i32 2}
1419
!1 = !{!2, !3}
1520
!2 = !{ !"RootFlags", i32 294 } ; 294 = deny_pixel/hull/vertex/amplification_shader_root_access
16-
!3 = !{ !"RootCBV", i32 0, i32 1, i32 0, i32 0 }
21+
!3 = !{ !"RootCBV", i32 0, i32 2, i32 0, i32 0 }

0 commit comments

Comments
 (0)