A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/microsoft/DirectXShaderCompiler/commit/474f9d28a334ac3abd449e4afa823a14719fad19 below:

[SER] Validate 'reordercoherent' resource property (#7429) · microsoft/DirectXShaderCompiler@474f9d2 · GitHub

1 +

; REQUIRES: dxil-1-8

2 +

; RUN: not %dxv %s 2>&1 | FileCheck %s

3 + 4 + 5 +

; CHECK: error: reordercoherent requires SM 6.9 or later. 'buf'

6 +

; CHECK-NEXT: Function: ?main@@YAXXZ: error: reordercoherent requires SM 6.9 or later.

7 +

; CHECK-NEXT: note: at '%3 = call %dx.types.Handle @dx.op.annotateHandle(i32 216, %dx.types.Handle %2, %dx.types.ResourceProperties { i32 69643, i32 0 })' in block '#0' of function '?main@@YAXXZ'.

8 +

; CHECK-NEXT: Function: ?main@@YAXXZ: error: reordercoherent requires SM 6.9 or later.

9 +

; CHECK-NEXT: note: at '%3 = call %dx.types.Handle @dx.op.annotateHandle(i32 216, %dx.types.Handle %2, %dx.types.ResourceProperties { i32 69643, i32 0 })' in block '#0' of function '?main@@YAXXZ'.

10 +

; CHECK-NEXT: Validation failed.

11 +

; COM: Original HLSL source:

12 +

; COM: reordercoherent RWByteAddressBuffer buf;

13 +

; COM:

14 +

; COM: [Shader("raygeneration")]

15 +

; COM: void main()

16 +

; COM: {

17 +

; COM: buf.Store(0, 11.f);

18 +

; COM: }

19 + 20 +

; shader hash: f7be6354830d1423764991adcfc26b0b

21 +

;

22 +

; Buffer Definitions:

23 +

;

24 +

;

25 +

; Resource Bindings:

26 +

;

27 +

; Name Type Format Dim ID HLSL Bind Count

28 +

; ------------------------------ ---------- ------- ----------- ------- -------------- ------

29 +

; buf UAV byte r/w U0u4294967295,space4294967295 1

30 +

;

31 +

target datalayout = "e-m:e-p:32:32-i1:32-i8:32-i16:32-i32:32-i64:64-f16:32-f32:32-f64:64-n8:16:32:64"

32 +

target triple = "dxil-ms-dx"

33 + 34 +

%dx.types.Handle = type { i8* }

35 +

%dx.types.ResourceProperties = type { i32, i32 }

36 +

%struct.RWByteAddressBuffer = type { i32 }

37 + 38 +

@"\01?buf@@3URWByteAddressBuffer@@A" = external constant %dx.types.Handle, align 4

39 + 40 +

; Function Attrs: nounwind

41 +

define void @"\01?main@@YAXXZ"() #0 {

42 +

%1 = load %dx.types.Handle, %dx.types.Handle* @"\01?buf@@3URWByteAddressBuffer@@A", align 4

43 +

%2 = call %dx.types.Handle @dx.op.createHandleForLib.dx.types.Handle(i32 160, %dx.types.Handle %1) ; CreateHandleForLib(Resource)

44 +

%3 = call %dx.types.Handle @dx.op.annotateHandle(i32 216, %dx.types.Handle %2, %dx.types.ResourceProperties { i32 69643, i32 0 }) ; AnnotateHandle(res,props) resource: reordercoherent RWByteAddressBuffer

45 +

call void @dx.op.rawBufferStore.f32(i32 140, %dx.types.Handle %3, i32 0, i32 undef, float 1.100000e+01, float undef, float undef, float undef, i8 1, i32 4) ; RawBufferStore(uav,index,elementOffset,value0,value1,value2,value3,mask,alignment)

46 +

ret void

47 +

}

48 + 49 +

; Function Attrs: nounwind

50 +

declare void @dx.op.rawBufferStore.f32(i32, %dx.types.Handle, i32, i32, float, float, float, float, i8, i32) #0

51 + 52 +

; Function Attrs: nounwind readnone

53 +

declare %dx.types.Handle @dx.op.annotateHandle(i32, %dx.types.Handle, %dx.types.ResourceProperties) #1

54 + 55 +

; Function Attrs: nounwind readonly

56 +

declare %dx.types.Handle @dx.op.createHandleForLib.dx.types.Handle(i32, %dx.types.Handle) #2

57 + 58 +

attributes #0 = { nounwind }

59 +

attributes #1 = { nounwind readnone }

60 +

attributes #2 = { nounwind readonly }

61 + 62 +

!dx.version = !{!0}

63 +

!dx.valver = !{!0}

64 +

!dx.shaderModel = !{!1}

65 +

!dx.resources = !{!2}

66 +

!dx.typeAnnotations = !{!3}

67 +

!dx.entryPoints = !{!4, !5}

68 + 69 +

!0 = !{i32 1, i32 8}

70 +

!1 = !{!"lib", i32 6, i32 8}

71 +

!2 = !{null, !6, null, null}

72 +

!3 = !{i32 1, void ()* @"\01?main@@YAXXZ", !7}

73 +

!4 = !{null, !"", null, !2, !8}

74 +

!5 = !{void ()* @"\01?main@@YAXXZ", !"\01?main@@YAXXZ", null, null, !9}

75 +

!6 = !{!10}

76 +

!7 = !{!11}

77 +

!8 = !{i32 0, i64 8589934608}

78 +

!9 = !{i32 8, i32 7, i32 5, !12}

79 +

!10 = !{i32 0, %struct.RWByteAddressBuffer* bitcast (%dx.types.Handle* @"\01?buf@@3URWByteAddressBuffer@@A" to %struct.RWByteAddressBuffer*), !"buf", i32 -1, i32 -1, i32 1, i32 11, i1 false, i1 false, i1 false, !13}

80 +

!11 = !{i32 1, !14, !14}

81 +

!12 = !{i32 0}

82 +

!13 = !{i32 4, i1 true}

83 +

!14 = !{}


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4