drm/i915: Update flush_all_caches() to take request structures
Updated the *_ring_flush_all_caches() functions to take requests instead of rings or ringbuf/context pairs. For: VIZ-5115 Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Tomas Elf <tomas.elf@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:

committed by
Daniel Vetter

parent
e2be4faf30
commit
4866d729ab
@@ -2507,9 +2507,9 @@ void __i915_add_request(struct drm_i915_gem_request *request,
|
||||
*/
|
||||
if (flush_caches) {
|
||||
if (i915.enable_execlists)
|
||||
ret = logical_ring_flush_all_caches(ringbuf, request->ctx);
|
||||
ret = logical_ring_flush_all_caches(request);
|
||||
else
|
||||
ret = intel_ring_flush_all_caches(ring);
|
||||
ret = intel_ring_flush_all_caches(request);
|
||||
/* Not allowed to fail! */
|
||||
WARN(ret, "*_ring_flush_all_caches failed: %d!\n", ret);
|
||||
}
|
||||
|
Reference in New Issue
Block a user