iris: Fix import sync-file into syncobj
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 22 Feb 2020 15:51:15 +0000 (15:51 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 15:43:19 +0000 (15:43 +0000)
commitae7bda27a0691d6d89c35c9f732b6e49d726c17f
treea09d6c2ae58f5ef743250b07e922f98e583be714
parent3a310fbd0b2bb5730fda57643a3e05870e70d248
iris: Fix import sync-file into syncobj

When importing a sync-file, the kernel expects to be told which syncobj
to replace with the new fence -- it does not automatically create a new
handle for us. Abide by this rule and create a new syncobj for the
imported sync-file.

Fixes: f459c56be6bf ("iris: Add fence support using drm_syncobj")
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3919>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3919>
src/gallium/drivers/iris/iris_fence.c