diff options
author | Ville Syrjälä <[email protected]> | 2018-09-18 17:02:43 +0300 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2018-10-17 18:23:23 -0700 |
commit | 3f6d5ba173da9a41c799146a3ad999da2158716a (patch) | |
tree | 8c3cee4db4e61279f2edda4491a0af6a4aeff8ae /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ca4b869240d5810ebac6b1570ad7beffcfbac2f5 (diff) |
drm/i915: Check fb stride against plane max stride
commit 4e0b83a567e2 ("drm/i915: Extract per-platform plane->check()
functions") removed the plane max stride check for sprite planes.
I was going to add it back when introducing GTT remapping for the
display, but after further thought it seems better to re-introduce
it separately.
So let's add the max stride check back. And let's do it in a nicer
form than what we had before and do it for all plane types (easy
now that we have the ->max_stride() plane vfunc).
Only sprite planes really need this for now since primary planes
are capable of scanning out the current max fb size we allow, and
cursors have more stringent stride checks elsewhere.
Cc: José Roberto de Souza <[email protected]>
Fixes: 4e0b83a567e2 ("drm/i915: Extract per-platform plane->check() functions")
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Dhinakaran Pandiyan <[email protected]>
(cherry picked from commit fc3fed5d297b51f9e2c7d4f969c95c0d6e50ca57)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions