Displaying 1 result from an estimated 1 matches for "r5g5b5".
Did you mean:
a1r5g5b5
2009 Oct 18
1
[PATCH 1/2] nv04-nv40/crtc: Don't perform the LUT expansion twice.
..._crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
int size)
@@ -901,34 +899,10 @@ nv_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
rgbs = (struct rgb *)nv_crtc->state->DAC;
- switch (crtc->scrn->depth) {
- case 15:
- /* R5G5B5 */
- /* spread 5 bits per colour (32 colours) over 256 (per colour) registers */
- for (i = 0; i < 32; i++) {
- rgbs[DEPTH_SHIFT(i, 5)].r = red[i] >> 8;
- rgbs[DEPTH_SHIFT(i, 5)].g = green[i] >> 8;
- rgbs[DEPTH_SHIFT(i, 5)].b = blue[i] >> 8;
- }
- break;
- case 16:
-...