mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 04:11:25 +00:00
Accept any type in the intrinsics definition, and then manually validate that there are no atomics in the type. Add manual E2E tests for composite types. Use the BuiltinPolyfill transform to implement it for all backends. Update the uniformity analysis with special-case tags for the builtin. Fixed: tint:1780 Change-Id: I95786dff4df70a0b16ed1c53b853b5d0ec6bc501 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/114862 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com> Kokoro: James Price <jrprice@google.com>
41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 22
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
|
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
|
OpName %v "v"
|
|
OpName %unused_entry_point "unused_entry_point"
|
|
OpName %tint_workgroupUniformLoad_v "tint_workgroupUniformLoad_v"
|
|
OpName %foo "foo"
|
|
%float = OpTypeFloat 32
|
|
%v3float = OpTypeVector %float 3
|
|
%mat3v3float = OpTypeMatrix %v3float 3
|
|
%_ptr_Workgroup_mat3v3float = OpTypePointer Workgroup %mat3v3float
|
|
%v = OpVariable %_ptr_Workgroup_mat3v3float Workgroup
|
|
%void = OpTypeVoid
|
|
%6 = OpTypeFunction %void
|
|
%10 = OpTypeFunction %mat3v3float
|
|
%uint = OpTypeInt 32 0
|
|
%uint_2 = OpConstant %uint 2
|
|
%uint_264 = OpConstant %uint 264
|
|
%unused_entry_point = OpFunction %void None %6
|
|
%9 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%tint_workgroupUniformLoad_v = OpFunction %mat3v3float None %10
|
|
%12 = OpLabel
|
|
OpControlBarrier %uint_2 %uint_2 %uint_264
|
|
%17 = OpLoad %mat3v3float %v
|
|
OpControlBarrier %uint_2 %uint_2 %uint_264
|
|
OpReturnValue %17
|
|
OpFunctionEnd
|
|
%foo = OpFunction %mat3v3float None %10
|
|
%20 = OpLabel
|
|
%21 = OpFunctionCall %mat3v3float %tint_workgroupUniformLoad_v
|
|
OpReturnValue %21
|
|
OpFunctionEnd
|