iris: Preserve all PIPE_TRANSFER flags in xfer->usage
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 8 Apr 2019 07:45:41 +0000 (00:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Apr 2019 21:51:01 +0000 (14:51 -0700)
commit62b2ce0592963b5328d126b05a726913adeb5ba2
treea273ddf3b3a60071378a965f8010a4e2d2a1cbac
parent9c52dce6a9219f031ffe0a80fd6f389960cb0018
iris: Preserve all PIPE_TRANSFER flags in xfer->usage

We need to preserve PIPE_TRANSFER_FLUSH_EXPLICIT, DISCARD_RANGE, and
so on, but don't want to pass them to iris_bo_map().  So, keep them all,
but mask them off when calling map.

Chris Wilson told me to do this a long time ago and he was right.
src/gallium/drivers/iris/iris_bufmgr.h
src/gallium/drivers/iris/iris_resource.c