i965g: flush when map a resource
i965g: reissue 3DSTATE_DEPTH_BUFFER for new batch buffers
i965g: restrict flush in texture barrier to gen7+