gallium: Shorthand functions for computing stride and sizes for a rect.