radv: Move some helper functions to the radv_shader.h header file.