mesa: function for testing if current frag-shader has atomics