gallium/util: add helper to compute zmin/zmax for a viewport state