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: 6b1a56b908 ("iris: Drop stale syncobj references in fence_server_sync")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7289>
(cherry picked from commit cb6ce4a265)
This commit is contained in:
Tapani Pälli 2020-10-23 13:25:39 +03:00 committed by Dylan Baker
parent cacca2aaa1
commit 5afe855fde
2 changed files with 2 additions and 2 deletions

View file

@ -940,7 +940,7 @@
"description": "iris: fix the order of src and dst for fence memcpy",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "6b1a56b908e702c06f55c63b19b695a47f607456"
},

View file

@ -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));
}
}
}