From 3933b86390eb2f4198d490acd4914fb470c40f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 1 Dec 2006 18:00:17 +0100 Subject: Make log file output clear about origin of used overlay scaler buffer width. --- src/radeon_driver.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/radeon_driver.c') diff --git a/src/radeon_driver.c b/src/radeon_driver.c index ee506ee6..686c7821 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -3055,10 +3055,14 @@ _X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags) (info->overlay_scaler_buffer_width > 2048) || ((info->overlay_scaler_buffer_width % 64) != 0)) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Attempt to set illegal scaler width. Using default\n"); + from = X_DEFAULT; info->overlay_scaler_buffer_width = 0; - } + } else + from = X_CONFIG; + } else { + from = X_DEFAULT; + info->overlay_scaler_buffer_width = 0; } - else info->overlay_scaler_buffer_width = 0; if (!info->overlay_scaler_buffer_width) { /* overlay scaler line length differs for different revisions this needs to be maintained by hand */ @@ -3072,7 +3076,7 @@ _X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags) info->overlay_scaler_buffer_width = 1536; } } - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Assuming overlay scaler buffer width is %d\n", + xf86DrvMsg(pScrn->scrnIndex, from, "Assuming overlay scaler buffer width is %d\n", info->overlay_scaler_buffer_width); if(info->tunerType>31){ -- cgit v1.2.3