r200: enable tiling flags on blitter setup.
authorDave Airlie <airlied@redhat.com>
Tue, 6 Dec 2011 09:44:37 +0000 (09:44 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Dec 2011 10:34:16 +0000 (10:34 +0000)
The r200 blitter also didn't set the correct tiling flags.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/r200/r200_blit.c

index 04ab6d07def72f53b3ce53b14d17e94fcc63c71d..fbded5314e5833459e765d6528e69b5f38e39da1 100644 (file)
@@ -149,6 +149,11 @@ static void inline emit_tx_setup(struct r200_context *r200,
            break;
     }
 
+    if (bo->flags & RADEON_BO_FLAGS_MACRO_TILE)
+       offset |= R200_TXO_MACRO_TILE;
+    if (bo->flags & RADEON_BO_FLAGS_MICRO_TILE)
+       offset |= R200_TXO_MICRO_TILE;
+
     switch (dst_mesa_format) {
     case MESA_FORMAT_ARGB8888:
     case MESA_FORMAT_XRGB8888:
@@ -327,6 +332,11 @@ static inline void emit_cb_setup(struct r200_context *r200,
            break;
     }
 
+    if (bo->flags & RADEON_BO_FLAGS_MACRO_TILE)
+       dst_pitch |= R200_COLOR_TILE_ENABLE;
+    if (bo->flags & RADEON_BO_FLAGS_MICRO_TILE)
+       dst_pitch |= R200_COLOR_MICROTILE_ENABLE;
+
     BEGIN_BATCH_NO_AUTOSTATE(22);
     OUT_BATCH_REGVAL(R200_RE_AUX_SCISSOR_CNTL, 0);
     OUT_BATCH_REGVAL(R200_RE_CNTL, 0);