intel: Fix drm_intel_gem_bo_wait_rendering to wait for read-only usage too.
Both the consumers of this API (sync objects and client throttling) were expecting this behavior. The kernel used to actually behave the desired (but incorrect) way for us anyway, but that got fixed a while back.main
parent
49447a9b95
commit
877b2ce15b
|
@ -1204,11 +1204,11 @@ drm_intel_gem_bo_get_subdata(drm_intel_bo *bo, unsigned long offset,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Waits for all GPU rendering to the object to have completed. */
|
/** Waits for all GPU rendering with the object to have completed. */
|
||||||
static void
|
static void
|
||||||
drm_intel_gem_bo_wait_rendering(drm_intel_bo *bo)
|
drm_intel_gem_bo_wait_rendering(drm_intel_bo *bo)
|
||||||
{
|
{
|
||||||
drm_intel_gem_bo_start_gtt_access(bo, 0);
|
drm_intel_gem_bo_start_gtt_access(bo, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue