freedreno: Add a helper for computing guardband sizes