diff options
author | Bob Paauwe <[email protected]> | 2014-12-18 09:51:26 -0800 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2015-01-26 11:00:33 +0200 |
commit | af1a7301c7cf8912dca03065d448c4437c5c239f (patch) | |
tree | 0b11d6c7a0a9b15ac8ad2a46352e250f1d5e395d /tools/perf/util/trace-event-scripting.c | |
parent | 13f3fbe827d09e3182023c8c54058cbf97aa146e (diff) |
drm/i915: Only fence tiled region of object.
When creating a fence for a tiled object, only fence the area that
makes up the actual tiles. The object may be larger than the tiled
area and if we allow those extra addresses to be fenced, they'll
get converted to addresses beyond where the object is mapped. This
opens up the possiblity of writes beyond the end of object.
To prevent this, we adjust the size of the fence to only encompass
the area that makes up the actual tiles. The extra space is considered
un-tiled and now behaves as if it was a linear object.
Testcase: igt/gem_tiled_fence_overflow
Reported-by: Dan Hettena <[email protected]>
Signed-off-by: Bob Paauwe <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Cc: [email protected]
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions