mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 21:32:56 +00:00
lib/kms: Pass fb_id=0 to setcrtc in kmstest_unset_all_crtcs()
The setcrtc ioctl ignores the fb_id when there's no mode specified. So passing -1 doens't make much sense. When there is a more, -1 means to preserve the current fb. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
+1
-1
@@ -824,7 +824,7 @@ void kmstest_unset_all_crtcs(int drm_fd, drmModeResPtr resources)
|
|||||||
int i, rc;
|
int i, rc;
|
||||||
|
|
||||||
for (i = 0; i < resources->count_crtcs; i++) {
|
for (i = 0; i < resources->count_crtcs; i++) {
|
||||||
rc = drmModeSetCrtc(drm_fd, resources->crtcs[i], -1, 0, 0, NULL,
|
rc = drmModeSetCrtc(drm_fd, resources->crtcs[i], 0, 0, 0, NULL,
|
||||||
0, NULL);
|
0, NULL);
|
||||||
igt_assert(rc == 0);
|
igt_assert(rc == 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user