From: Eric Anholt Date: Fri, 6 Mar 2009 07:32:00 +0000 (-0800) Subject: intel: Fix bpp setting of blits to 8bpp targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19e134051c1025bbfe3838108492d705ab2b5b8b;p=mesa.git intel: Fix bpp setting of blits to 8bpp targets. This was causing hangs in cairogears, as we would blit to the 8bpp target (A8 texture) as 16bpp, and stomp over state objects. --- diff --git a/src/mesa/drivers/dri/intel/intel_blit.c b/src/mesa/drivers/dri/intel/intel_blit.c index 2d680b292a7..4e033082b4d 100644 --- a/src/mesa/drivers/dri/intel/intel_blit.c +++ b/src/mesa/drivers/dri/intel/intel_blit.c @@ -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);