From d59eaa8b1e6eeb9775c9d21c7a5fd28f25b2bc3a Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Wed, 6 Feb 2008 09:35:43 -0800 Subject: [PATCH] Only disable FBC if registers are available The call to disable FBC should only occur if the FBC feature is actually present or we may end up hanging on a read from a non-existent register. --- src/i830_display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/i830_display.c b/src/i830_display.c index 585b0e71..3fe7cda2 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -722,7 +722,8 @@ i830_use_fb_compression(xf86CrtcPtr crtc) /* Here we disable it to catch one->two pipe enabled configs */ if (count > 1) { - i830_disable_fb_compression(crtc); + if (i830_fb_compression_supported(pI830)) + i830_disable_fb_compression(crtc); return FALSE; }