mesa: Refactor bounding-box calculation out of _mesa_update_draw_buffer_bounds