From 1ad1c4ae77d8d147b6fe83220727dbdd989a4818 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 8 Jun 2024 18:05:39 -0700 Subject: [PATCH] [naga] Add snapshot test output omitted from #5702. --- .../out/ir/atomic_i_increment.compact.ron | 106 +++++++++++++ naga/tests/out/ir/atomic_i_increment.ron | 140 ++++++++++++++++++ 2 files changed, 246 insertions(+) create mode 100644 naga/tests/out/ir/atomic_i_increment.compact.ron create mode 100644 naga/tests/out/ir/atomic_i_increment.ron diff --git a/naga/tests/out/ir/atomic_i_increment.compact.ron b/naga/tests/out/ir/atomic_i_increment.compact.ron new file mode 100644 index 0000000000..de69d58ed8 --- /dev/null +++ b/naga/tests/out/ir/atomic_i_increment.compact.ron @@ -0,0 +1,106 @@ +( + types: [ + ( + name: None, + inner: Scalar(( + kind: Uint, + width: 4, + )), + ), + ( + name: None, + inner: Struct( + members: [ + ( + name: None, + ty: 1, + binding: None, + offset: 0, + ), + ], + span: 4, + ), + ), + ], + special_types: ( + ray_desc: None, + ray_intersection: None, + predeclared_types: {}, + ), + constants: [], + overrides: [], + global_variables: [ + ( + name: None, + space: Storage( + access: ("LOAD | STORE"), + ), + binding: Some(( + group: 0, + binding: 0, + )), + ty: 2, + init: None, + ), + ], + global_expressions: [], + functions: [ + ( + name: None, + arguments: [], + result: None, + local_variables: [], + expressions: [ + GlobalVariable(1), + AccessIndex( + base: 1, + index: 0, + ), + AtomicResult( + ty: 1, + comparison: false, + ), + Literal(U32(1)), + ], + named_expressions: {}, + body: [ + Emit(( + start: 1, + end: 3, + )), + Atomic( + pointer: 2, + fun: Add, + value: 4, + result: 3, + ), + Return( + value: None, + ), + ], + ), + ], + entry_points: [ + ( + name: "stage::test_atomic_i_increment", + stage: Compute, + early_depth_test: None, + workgroup_size: (32, 1, 1), + function: ( + name: Some("stage::test_atomic_i_increment_wrap"), + arguments: [], + result: None, + local_variables: [], + expressions: [], + named_expressions: {}, + body: [ + Call( + function: 1, + arguments: [], + result: None, + ), + ], + ), + ), + ], +) \ No newline at end of file diff --git a/naga/tests/out/ir/atomic_i_increment.ron b/naga/tests/out/ir/atomic_i_increment.ron new file mode 100644 index 0000000000..eadd1ebdbc --- /dev/null +++ b/naga/tests/out/ir/atomic_i_increment.ron @@ -0,0 +1,140 @@ +( + types: [ + ( + name: None, + inner: Scalar(( + kind: Uint, + width: 4, + )), + ), + ( + name: None, + inner: Struct( + members: [ + ( + name: None, + ty: 1, + binding: None, + offset: 0, + ), + ], + span: 4, + ), + ), + ( + name: None, + inner: Pointer( + base: 2, + space: Storage( + access: ("LOAD | STORE"), + ), + ), + ), + ( + name: None, + inner: Pointer( + base: 1, + space: Storage( + access: ("LOAD | STORE"), + ), + ), + ), + ], + special_types: ( + ray_desc: None, + ray_intersection: None, + predeclared_types: {}, + ), + constants: [ + ( + name: None, + ty: 1, + init: 1, + ), + ( + name: None, + ty: 1, + init: 2, + ), + ], + overrides: [], + global_variables: [ + ( + name: None, + space: Storage( + access: ("LOAD | STORE"), + ), + binding: Some(( + group: 0, + binding: 0, + )), + ty: 2, + init: None, + ), + ], + global_expressions: [ + Literal(U32(0)), + Literal(U32(2)), + ], + functions: [ + ( + name: None, + arguments: [], + result: None, + local_variables: [], + expressions: [ + GlobalVariable(1), + Constant(2), + Constant(1), + AccessIndex( + base: 1, + index: 0, + ), + AtomicResult( + ty: 1, + comparison: false, + ), + Literal(U32(1)), + ], + named_expressions: {}, + body: [ + Emit(( + start: 3, + end: 5, + )), + Atomic( + pointer: 4, + fun: Add, + value: 6, + result: 5, + ), + Return( + value: None, + ), + ], + ), + ], + entry_points: [ + ( + name: "stage::test_atomic_i_increment", + stage: Compute, + early_depth_test: None, + workgroup_size: (32, 1, 1), + function: ( + name: Some("stage::test_atomic_i_increment_wrap"), + arguments: [], + result: None, + local_variables: [], + expressions: [], + named_expressions: {}, + body: [ + Call( + function: 1, + arguments: [], + result: None, + ), + ], + ), + ), + ], +) \ No newline at end of file