summaryrefslogtreecommitdiff
path: root/tests/kms_plane_multiple.c
diff options
context:
space:
mode:
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>2019-04-10 14:32:05 +0300
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2019-04-11 10:38:28 +0200
commit5941f371b0fe25084d4b1c49882faa8d41d44c9f (patch)
treebb8e2e66cabfdbac475de0f210a42aac5e838d7d /tests/kms_plane_multiple.c
parent4f19828ff2a34400ad86eb43d4cb802dde46bd09 (diff)
igt/tests/kms_atomic_transition: Tolerate if can't have all planes
With some upcoming changes i915 might not allow all sprite planes enabled, depending on available bandwidth limitation. Thus the test need to decrement amount of planes and try again, instead of panicking. v2: Removed excessive nested conditions, making code a bit more readable(hopefully). v3: Stopped using global n_planes variable as it might cause resources being unreleased. Using now parms[i].mask as a way to determine if plane has to be included into commit. v4: Removed unneeded n_overlays initialization. v5: Randomize which of sprite planes to remove if hitting resource limits. v6: Replace igt_warn with igt_info, to make IGT tests happier. v7: Removed unneeded retry logic, made plane random removal simplier. Great thanks to Maarten Lankhorst for suggestions. v8: Fail if we have less than 3 planes v9: Remove unneeded diffs Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_plane_multiple.c')
0 files changed, 0 insertions, 0 deletions