From: Tapani Pälli Date: Fri, 23 Oct 2020 10:25:39 +0000 (+0300) Subject: iris: fix the order of src and dst for fence memcpy X-Git-Tag: upstream/21.0.0~3401 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb6ce4a265ba64c172829a3d6d2e13a7d920133d;p=platform%2Fupstream%2Fmesa.git iris: fix the order of src and dst for fence memcpy This fixes random failures with "deqp-egl --deqp-case=*multithread*": iris: Failed to submit batchbuffer: No such file or directory Fixes: 6b1a56b908e ("iris: Drop stale syncobj references in fence_server_sync") Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke Part-of: --- diff --git a/src/gallium/drivers/iris/iris_fence.c b/src/gallium/drivers/iris/iris_fence.c index d9bdf9b..399a067 100644 --- a/src/gallium/drivers/iris/iris_fence.c +++ b/src/gallium/drivers/iris/iris_fence.c @@ -154,7 +154,7 @@ clear_stale_syncobjs(struct iris_batch *batch) if (syncobj != nth_syncobj) { *syncobj = *nth_syncobj; - memcpy(nth_fence, fence, sizeof(*fence)); + memcpy(fence, nth_fence, sizeof(*fence)); } } }