mesa/cs: Add inline functions for dealing with compute shaders.