Mesa (main): gallium/noop: use threaded_transfer

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 9 13:14:25 UTC 2021


Module: Mesa
Branch: main
Commit: dd528305d579e4d473370fd8e15944ea59289151
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd528305d579e4d473370fd8e15944ea59289151

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Aug  6 16:03:11 2021 -0400

gallium/noop: use threaded_transfer

to enable threaded_context later

Acked-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12255>

---

 src/gallium/auxiliary/driver_noop/noop_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/driver_noop/noop_pipe.c b/src/gallium/auxiliary/driver_noop/noop_pipe.c
index bd3ecbf86d1..b1e65e87adc 100644
--- a/src/gallium/auxiliary/driver_noop/noop_pipe.c
+++ b/src/gallium/auxiliary/driver_noop/noop_pipe.c
@@ -209,7 +209,7 @@ static void *noop_transfer_map(struct pipe_context *pipe,
    struct pipe_transfer *transfer;
    struct noop_resource *nresource = (struct noop_resource *)resource;
 
-   transfer = CALLOC_STRUCT(pipe_transfer);
+   transfer = (struct pipe_transfer*)CALLOC_STRUCT(threaded_transfer);
    if (!transfer)
       return NULL;
    pipe_resource_reference(&transfer->resource, resource);



More information about the mesa-commit mailing list