nouveau: nv10: 16 bits color buffer format
authorPatrice Mandin <patrice@manoir.racoon.city>
Sun, 14 Jan 2007 19:14:58 +0000 (20:14 +0100)
committerPatrice Mandin <patrice@manoir.racoon.city>
Sun, 14 Jan 2007 19:14:58 +0000 (20:14 +0100)
src/mesa/drivers/dri/nouveau/nv10_state.c

index 8785879d9d19f0fda3208626a534ec9c3e8603d2..dbd8bf306e45f055ae2e922f8a30c5af1f9b14e9 100644 (file)
@@ -684,7 +684,7 @@ static GLboolean nv10BindBuffers(nouveauContextPtr nmesa, int num_color,
        }
        format = 0x108;
        if (color[0]->mesa._ActualFormat != GL_RGBA8) {
-               /* FIXME: set 16 bits format */
+               format = 0x103; /* R5G6B5 color buffer */
        }
        OUT_RING(format);
        OUT_RING(pitch);