gallium: rename transfer flags -> map flags in comments
authorMarek Olšák <marek.olsak@amd.com>
Wed, 1 Jul 2020 12:41:11 +0000 (08:41 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Sep 2020 03:20:54 +0000 (03:20 +0000)
Acked-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5749>

src/gallium/auxiliary/util/u_threaded_context.h
src/gallium/drivers/etnaviv/etnaviv_transfer.c

index e0e76ec..29e436f 100644 (file)
 struct threaded_context;
 struct tc_unflushed_batch_token;
 
-/* These are transfer flags sent to drivers. */
+/* These are map flags sent to drivers. */
 /* Never infer whether it's safe to use unsychronized mappings: */
 #define TC_TRANSFER_MAP_NO_INFER_UNSYNCHRONIZED (1u << 29)
 /* Don't invalidate buffers: */
index e448f4a..33b8e48 100644 (file)
@@ -270,7 +270,7 @@ etna_transfer_map(struct pipe_context *pctx, struct pipe_resource *prsc,
        * resources, but only if the RS can blit them. */
       if (usage & PIPE_MAP_DIRECTLY) {
          slab_free(&ctx->transfer_pool, trans);
-         BUG("unsupported transfer flags %#x with tile status/tiled layout", usage);
+         BUG("unsupported map flags %#x with tile status/tiled layout", usage);
          return NULL;
       }