diff options
author | Chris Wilson <[email protected]> | 2017-06-16 11:54:55 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2017-06-16 14:52:27 +0100 |
commit | 7fc92e96c3eed6004ce8dab5e315264bff85db5a (patch) | |
tree | 4440f4b244e2699e387f2abdb1e37c295a50f279 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e27ab73d17ef90db3e586a02ce2f03eb660451cd (diff) |
drm/i915: Store i915_gem_object_is_coherent() as a bit next to cache-dirty
For ease of use (i.e. avoiding a few checks and function calls), store
the object's cache coherency next to the cache is dirty bit.
Specifically this patch aims to reduce the frequency of no-op calls to
i915_gem_object_clflush() to counter-act the increase of such calls for
GPU only objects in the previous patch.
v2: Replace cache_dirty & ~cache_coherent with cache_dirty &&
!cache_coherent as gcc generates much better code for the latter
(Tvrtko)
Signed-off-by: Chris Wilson <[email protected]>
Cc: Dongwon Kim <[email protected]>
Cc: Matt Roper <[email protected]>
Tested-by: Dongwon Kim <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Tvrtko Ursulin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions