]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
pinctrl: sunxi: Disable strict mode for H5 driver
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_sync.c
index c586f44312f9772fb93f8b1442827c842d610594..a4bf21f8f1c187e9c7f45bfc4c30171760647eea 100644 (file)
@@ -169,14 +169,14 @@ int amdgpu_sync_fence(struct amdgpu_device *adev, struct amdgpu_sync *sync,
  *
  * @sync: sync object to add fences from reservation object to
  * @resv: reservation object with embedded fence
- * @shared: true if we should only sync to the exclusive fence
+ * @explicit_sync: true if we should only sync to the exclusive fence
  *
  * Sync to the fence
  */
 int amdgpu_sync_resv(struct amdgpu_device *adev,
                     struct amdgpu_sync *sync,
                     struct reservation_object *resv,
-                    void *owner)
+                    void *owner, bool explicit_sync)
 {
        struct reservation_object_list *flist;
        struct dma_fence *f;
@@ -191,6 +191,9 @@ int amdgpu_sync_resv(struct amdgpu_device *adev,
        f = reservation_object_get_excl(resv);
        r = amdgpu_sync_fence(adev, sync, f);
 
+       if (explicit_sync)
+               return r;
+
        flist = reservation_object_get_list(resv);
        if (!flist || r)
                return r;
This page took 0.02894 seconds and 4 git commands to generate.