diff options
author | Chris Wilson <[email protected]> | 2017-02-03 10:56:52 +0000 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2017-02-16 11:59:10 +0200 |
commit | 1769ae83c8cb32166d1e208f7cefbf334085bd58 (patch) | |
tree | 751264c514747430fc26398e23075dff3af3cfa0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2d2cfc12b1270c8451edc7d2dd5f79097b3a17d8 (diff) |
drm/i915: Reject set-tiling-ioctl with stride==0 and a tiling mode
In commit 957870f93412 ("drm/i915: Split out i915_gem_object_set_tiling()"),
I swapped an alignment check for IS_ALIGNED and in the process removed
the less-than check. That check turns out to be important as it was the
only rejection for stride == 0. Tvrtko did spot it, but I was
overconfident in the IS_ALIGNED() conversion.
Fixes: 957870f93412 ("drm/i915: Split out i915_gem_object_set_tiling()")
Testcase: igt/gem_tiling_max_stride
Signed-off-by: Chris Wilson <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Tvrtko Ursulin <[email protected]>
(cherry picked from commit 52da22e7aba155be238faff4f6e97b2eb9de64f3)
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions