Forráskód Böngészése

drm/amdgpu: fix wait_any_fence

first is incorrect if hit NULL/signaled fence

Signed-off-by: Monk Liu <monk.liu@amd.com>
Reviewed-by: Chunming Zhou <David1.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Monk Liu 8 éve
szülő
commit
a2138eaf97
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

+ 1 - 0
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

@@ -1384,6 +1384,7 @@ static int amdgpu_cs_wait_any_fence(struct amdgpu_device *adev,
 			array[i] = fence;
 		} else { /* NULL, the fence has been already signaled */
 			r = 1;
+			first = i;
 			goto out;
 		}
 	}