Do not set disable CRTCs when updating root FB

For a disabled CRTC, xf86_config->num_output = 0, and drmmode_set_crtc()
will fail.

So, skip disabled CRTCs when resizing the root framebuffer in blit mode.

Signed-off-by: Daniel Kurtz <>

TEST=On peach_pi:
 1. Power off ChromeBook
 2. Plug HDMI monitor
 3. Power on ChromeBook

Change-Id: Ib30d4e8eb7a2530ec021475794e726eb80bd8a87
Trybot-Ready: Daniel Kurtz <>
Tested-by: Daniel Kurtz <>
Reviewed-by: Wai-Hong Tam <>
Reviewed-by: Dominik Behr <>
Commit-Queue: Daniel Kurtz <>
1 file changed