panfrost/midgard: Add mir_has_arg helper