completed crtc colordepth setup guess for 24bit mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13812 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -424,9 +424,11 @@ status_t eng_crtc_depth(int mode)
|
|||||||
|
|
||||||
/* set VCLK scaling */
|
/* set VCLK scaling */
|
||||||
/* genctrl bit use:
|
/* genctrl bit use:
|
||||||
b7: ?
|
b7: PAL assignment stuff (color-lookup (0) versus gamma (1))?
|
||||||
|
%1 = very dark image (tested 8-bit mode)
|
||||||
b6: ?
|
b6: ?
|
||||||
b5: ?
|
b5: %0 = distortions (stripes) only (tested 8-bit mode)
|
||||||
|
%1 = OK
|
||||||
b4: %0 = 15-bit color in 2 bytes/pixel mode;
|
b4: %0 = 15-bit color in 2 bytes/pixel mode;
|
||||||
%1 = 16-bit color in 2 bytes/pixel mode.
|
%1 = 16-bit color in 2 bytes/pixel mode.
|
||||||
b3-2:%00 = 1 byte /pixel;
|
b3-2:%00 = 1 byte /pixel;
|
||||||
@@ -453,8 +455,8 @@ status_t eng_crtc_depth(int mode)
|
|||||||
break;
|
break;
|
||||||
case BPP24:
|
case BPP24:
|
||||||
/* direct mode */
|
/* direct mode */
|
||||||
//fixme: complete guess..
|
//fixme? this is a guess..
|
||||||
genctrl = 0x0a; //%0000 1010
|
genctrl = 0xaa; //%1010 1010
|
||||||
break;
|
break;
|
||||||
case BPP32:
|
case BPP32:
|
||||||
/* direct mode */
|
/* direct mode */
|
||||||
|
|||||||
Reference in New Issue
Block a user