freedreno: Refactor fd_resource_create_with_modifiers() into a helper