]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/userptr: Don't mark readonly objects as dirty
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Jul 2019 08:17:18 +0000 (09:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Jul 2019 17:54:19 +0000 (18:54 +0100)
commit5625525dcd65e4867a492968f7090bc74c0c82bb
tree809aa137db3741d76ab473689f4c919bc4618103
parent963a3c8fc24a438dc01c6e0d1c1ad8e45af33274
drm/i915/userptr: Don't mark readonly objects as dirty

If we map an object as readonly into the GTT, we know that the GPU
cannot have written to it and so the object is not dirty and we don't
need to flush the writes back to the system.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190709081718.27843-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_userptr.c