igt_kms: add kmstest_unset_all_crtcs()

Both pm_rpm.c and pm_lpsp.c call it "disable_all_screens", but let's
give it a name that better describes what the implementation does.

v2: Rename to kmstest_unset_all_crtcs (Daniel).

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni
2014-08-06 14:31:53 -03:00
parent da458758e7
commit d52365677e
4 changed files with 23 additions and 21 deletions
+1 -7
View File
@@ -232,13 +232,7 @@ static void disable_all_screens_dpms(struct mode_set_data *data)
static void disable_all_screens(struct mode_set_data *data)
{
int i, rc;
for (i = 0; i < data->res->count_crtcs; i++) {
rc = drmModeSetCrtc(drm_fd, data->res->crtcs[i], -1, 0, 0,
NULL, 0, NULL);
igt_assert(rc == 0);
}
kmstest_unset_all_crtcs(drm_fd, data->res);
}
static struct scanout_fb *create_fb(struct mode_set_data *data, int width,