brintos

brintos / llvm-project-archived public Read only

0
0
Text · 723 B · 4e50f50 Raw
20 lines · plain
1; RUN: not opt -S -passes='dxil-post-optimization-validation' %s 2>&1 | FileCheck %s2 3; CHECK: error: Shader has root bindings but root signature uses a DENY flag to disallow root binding access to the shader stage.4target triple = "dxil-pc-shadermodel6.6-pixel"5 6@SB.str = private unnamed_addr constant [3 x i8] c"SB\00", align 17 8define void @CSMain() "hlsl.shader"="pixel" {9entry:10  %SB = tail call target("dx.RawBuffer", i32, 0, 0) @llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, ptr nonnull @SB.str)11  ret void12}13 14!dx.rootsignatures = !{!0}15 16!0 = !{ptr @CSMain, !1, i32 2}17!1 = !{!2, !3}18!2 = !{!"RootSRV", i32 0, i32 0, i32 0, i32 4}19!3 = !{!"RootFlags", i32 32} ; 32 = deny_pixel_shader_root_access20