drm/nv40/fb: use an actual compressed zeta format
authorBen Skeggs <bskeggs@redhat.com>
Tue, 30 Oct 2012 03:55:13 +0000 (13:55 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 28 Nov 2012 23:56:34 +0000 (09:56 +1000)
SPLIT is apparently just that, and only splits Z and S components.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/fb/nv40.c

index fe7e29841aa5e101f1f5208204cf95cf3f7d2698..65e131b90f37ce108d83cac8703af1f23c92fec2 100644 (file)
@@ -54,7 +54,7 @@ nv40_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags,
        u32 tags  = round_up(tiles / pfb->ram.parts, 0x100);
        if ( (flags & 2) &&
            !nouveau_mm_head(&pfb->tags, 1, tags, tags, 1, &tile->tag)) {
-               tile->zcomp  = 0x24000000; /* Z24S8_SPLIT */
+               tile->zcomp  = 0x28000000; /* Z24S8_SPLIT_GRAD */
                tile->zcomp |= ((tile->tag->offset           ) >> 8);
                tile->zcomp |= ((tile->tag->offset + tags - 1) >> 8) << 13;
 #ifdef __BIG_ENDIAN