changeset 25317:7f3cb5408f28

Fixed VIDIX color bug that was introduced when Radeon VIDIX driver was synchronized with vidix.sf.net. The red color was saturating. Corrected value fixes the issue and restore the color to the level it used to have before synchronization. Meaning of the value remains unknow but was retrieved from register's value of a Radeon 9000 card, so it may need further testing. Patch by Guillaume Lecerf (foxcore at gmail dot com)
author ben
date Mon, 10 Dec 2007 19:27:46 +0000
parents ea301dc982fa
children 641296552e82
files vidix/radeon_vid.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/radeon_vid.c	Mon Dec 10 19:13:54 2007 +0000
+++ b/vidix/radeon_vid.c	Mon Dec 10 19:27:46 2007 +0000
@@ -1138,6 +1138,7 @@
   besr.graphics_key_msk=0;
   besr.graphics_key_clr=0;
   besr.ckey_cntl = VIDEO_KEY_FN_TRUE|GRAPHIC_KEY_FN_TRUE|CMP_MIX_AND;
+  besr.merge_cntl |= 0x00000100;  /* DISP_RGB_OFFSET_EN */
 }
 
 static int find_chip(unsigned chip_id)