skia2/tests/sksl/shared/UniformBuffers.asm.frag
John Stiles 7bba1f55e8 Revert "Added more RelaxedPrecision decorations"
This reverts commit ab52d95634.

Reason for revert: didn't intend for this to submit, oops

Original change's description:
> Added more RelaxedPrecision decorations
>
> Change-Id: I3814e7144f22c8f838082df6ed1f41119efb2ec2
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/385157
> Commit-Queue: John Stiles <johnstiles@google.com>
> Reviewed-by: John Stiles <johnstiles@google.com>

TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com

Change-Id: I8190069d8a428e541782cb2b47ec280f4c7e5686
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/386956
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2021-03-19 03:01:50 +00:00

67 lines
2.3 KiB
JavaScript

OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
OpExecutionMode %main OriginUpperLeft
OpName %testBlock "testBlock"
OpMemberName %testBlock 0 "x"
OpMemberName %testBlock 1 "w"
OpMemberName %testBlock 2 "y"
OpMemberName %testBlock 3 "z"
OpName %sk_FragColor "sk_FragColor"
OpName %sk_Clockwise "sk_Clockwise"
OpName %main "main"
OpDecorate %_arr_float_int_2 ArrayStride 16
OpMemberDecorate %testBlock 0 Offset 0
OpMemberDecorate %testBlock 0 RelaxedPrecision
OpMemberDecorate %testBlock 1 Offset 4
OpMemberDecorate %testBlock 2 Offset 16
OpMemberDecorate %testBlock 2 RelaxedPrecision
OpMemberDecorate %testBlock 3 Offset 48
OpMemberDecorate %testBlock 3 ColMajor
OpMemberDecorate %testBlock 3 MatrixStride 16
OpMemberDecorate %testBlock 3 RelaxedPrecision
OpDecorate %testBlock Block
OpDecorate %3 Binding 0
OpDecorate %3 DescriptorSet 0
OpDecorate %sk_FragColor RelaxedPrecision
OpDecorate %sk_FragColor Location 0
OpDecorate %sk_FragColor Index 0
OpDecorate %sk_Clockwise BuiltIn FrontFacing
OpDecorate %24 RelaxedPrecision
OpDecorate %26 RelaxedPrecision
OpDecorate %29 RelaxedPrecision
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%int_2 = OpConstant %int 2
%_arr_float_int_2 = OpTypeArray %float %int_2
%v3float = OpTypeVector %float 3
%mat3v3float = OpTypeMatrix %v3float 3
%testBlock = OpTypeStruct %float %int %_arr_float_int_2 %mat3v3float
%_ptr_Uniform_testBlock = OpTypePointer Uniform %testBlock
%3 = OpVariable %_ptr_Uniform_testBlock Uniform
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%sk_FragColor = OpVariable %_ptr_Output_v4float Output
%bool = OpTypeBool
%_ptr_Input_bool = OpTypePointer Input %bool
%sk_Clockwise = OpVariable %_ptr_Input_bool Input
%void = OpTypeVoid
%19 = OpTypeFunction %void
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%int_1 = OpConstant %int 1
%float_0 = OpConstant %float 0
%main = OpFunction %void None %19
%20 = OpLabel
%22 = OpAccessChain %_ptr_Uniform_float %3 %int_0
%24 = OpLoad %float %22
%25 = OpAccessChain %_ptr_Uniform_float %3 %int_2 %int_0
%26 = OpLoad %float %25
%28 = OpAccessChain %_ptr_Uniform_float %3 %int_2 %int_1
%29 = OpLoad %float %28
%31 = OpCompositeConstruct %v4float %24 %26 %29 %float_0
OpStore %sk_FragColor %31
OpReturn
OpFunctionEnd