amd/common: add ac_get_cb_shader_mask() helper