We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
Been doing some analysis on some GLSL shader programs with the Mali Offline Compiler, great program btw.
It is however reporting that a clamp (vec3,float,float) is somehow slower for the Mali-Gxx than doing a seperate min/max according the offline compiler.
vec3 clamp_minmax (vec3 val, float minimum, float maximum){ return clamp(val, minimum, maximum);}
vs
vec3 clamp_minmax (vec3 val, float minimum, float maximum){ vec3 rval = min(val, maximum); return max (rval, minimum);}Note that the minimum is a constant 0.0f.
Is this expected and correct for a Mali-Gxx ?
Ok , that's enough info for me! Be looking forward to that next release. Thank you for the quick support!