Move more logic into brw_emit_depthbuffer()