[Nouveau] [PATCH 1/2] Fix NVLoadPalette for 15/16 bit depth.

Francisco Jerez currojerez at riseup.net
Sun Oct 11 11:52:56 PDT 2009


Signed-off-by: Francisco Jerez <currojerez at riseup.net>
---
 src/nv_driver.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/nv_driver.c b/src/nv_driver.c
index a31ce5d..4255c19 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1419,6 +1419,8 @@ NVLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
 					lut_b[index * 8 + j] = colors[index].blue << 8;
 				}
 			}
+			break;
+
 		case 16:
 			for (i = 0; i < numColors; i++) {
 				index = indices[i];
@@ -1434,6 +1436,8 @@ NVLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
 					lut_g[index * 4 + j] = colors[index].green << 8;
 				}
 			}
+			break;
+
 		default:
 			for (i = 0; i < numColors; i++) {
 				index = indices[i];
-- 
1.6.4.4



More information about the Nouveau mailing list