From 8e2ac24482d87b10e2619c2de67ae0bfb33e98c4 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 May 2021 12:38:46 -0400 Subject: [PATCH] zink: stop overwriting buffer map pointers for stream uploader this breaks the driver! the uploader always maps its own pointer, so modifying that at any point just explodes things later Fixes: d179c5d28e6 ("zink: implement threaded context") Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_resource.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 67e3f37e69f..b8ec6dfc648 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -895,7 +895,6 @@ buffer_transfer_map(struct zink_context *ctx, struct zink_resource *res, unsigne (struct pipe_resource **)&trans->staging_res, (void **)&ptr); res = zink_resource(trans->staging_res); trans->offset = offset; - res->obj->map = ptr; } else { /* At this point, the buffer is always idle (we checked it above). */ usage |= PIPE_MAP_UNSYNCHRONIZED;