iris: keep DISCARD_RANGE
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 4 Jul 2018 22:37:34 +0000 (15:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
this isn't really an iris_bo_map flag, but the various resource mappers
want to check for it to avoid making temp copies.

src/gallium/drivers/iris/iris_resource.c

index 2b34c5dcafa7ed1418059d5164af40c366299af0..9327fbc66720fc920304b9fccf8ea884533390dc 100644 (file)
@@ -558,7 +558,8 @@ iris_transfer_map(struct pipe_context *ctx,
                    PIPE_TRANSFER_WRITE |
                    PIPE_TRANSFER_UNSYNCHRONIZED |
                    PIPE_TRANSFER_PERSISTENT |
-                   PIPE_TRANSFER_COHERENT);
+                   PIPE_TRANSFER_COHERENT |
+                   PIPE_TRANSFER_DISCARD_RANGE);
 
    if (surf->tiling != ISL_TILING_LINEAR) {
       iris_map_tiled_memcpy(map);