diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-10-03 16:15:44 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2017-10-04 14:43:05 +0300 |
commit | 9913b582eeb5e9d52dd9963f95f875e1231f44b2 (patch) | |
tree | fbdb37419b7f07e2896b76b0bc15bb4879999ad2 /lib/igt_kms.c | |
parent | 7c9dccb596b6467899c993a7df5d32574c1b89b9 (diff) |
tests/kms_color: Unset plane fb on teardown, v2.
Valgrind is slightly unhappy when we leave the fb set:
==1804== Invalid read of size 4
==1804== at 0x122F83: igt_plane_get_fb_id (igt_kms.c:2074)
==1804== by 0x122F83: igt_primary_plane_commit_legacy
(igt_kms.c:2339)
==1804== by 0x122F83: igt_plane_commit (igt_kms.c:2394)
==1804== by 0x122F83: igt_pipe_commit (igt_kms.c:2435)
==1804== by 0x122F83: do_display_commit (igt_kms.c:2667)
==1804== by 0x12338D: igt_display_commit2 (igt_kms.c:2777)
==1804== by 0x112F83: run_tests_for_pipe (kms_color.c:1053)
==1804== by 0x11360F: __real_main1189 (kms_color.c:1206)
==1804== by 0x110BC6: main (kms_color.c:1189)
==1804== Address 0x1ffeffeb20 is on thread 1's stack
==1804== 160 bytes below stack pointer
Add the missing calls to igt_plane_set_fb, and fix the crash.
Changes since v1:
- Fix compilation!
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'lib/igt_kms.c')
0 files changed, 0 insertions, 0 deletions