Hi all:
I got the following result by compiling a opencl program. I do not know what is "work registers" and "uniform registers". Mali T600 a register bank that contains 1024 registers. Are the 1024 registers the sum of "wor resigters" and "uniform registers" ?
Thank you
-Jack
---------------------------------------------------------------------------
ARM Mali Offline Compiler v5.7.0(C) Copyright 2007-2017 ARM Limited.All rights reserved.7 work registers used, 5 uniform registers used, spilling not used. A L/S T BoundInstructions Emitted: 20 10 2 AShortest Path Cycles: 2 2 0 A, L/SLongest Path Cycles: N/A N/A N/A N/AA = Arithmetic, L/S = Load/Store, T = TextureNote: The cycles counts do not include possible stalls due to cache misses.Note: Shaders with loops may return "N/A" for cycle counts if the number of cycles cannot be statically determined.
Multiple variables can share the same working register. Two mediump vec4s can use one working register.
Packing two vec2s into a vec4 and swizzling them should not affect register usage.
Alright. I'll continue using this technique then