intel: Fix bpp setting of blits to 8bpp targets.
authorEric Anholt <eric@anholt.net>
Fri, 6 Mar 2009 07:32:00 +0000 (23:32 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 6 Mar 2009 07:43:43 +0000 (23:43 -0800)
This was causing hangs in cairogears, as we would blit to the 8bpp target
(A8 texture) as 16bpp, and stomp over state objects.

src/mesa/drivers/dri/intel/intel_blit.c

index 2d680b2..4e03308 100644 (file)
@@ -332,6 +332,8 @@ intelEmitCopyBlit(struct intel_context *intel,
 
    switch (cpp) {
    case 1:
+      CMD = XY_SRC_COPY_BLT_CMD;
+      break;
    case 2:
    case 3:
       BR13 |= (1 << 24);