drm/nv20/fb: fix zcomp register calculation on big-endian systems

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2012-10-10 10:34:29 +10:00
parent 4ae207453e
commit d33db63b37
2 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,9 @@ nv20_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags,
tile->zcomp |= 0x80000000;
if (bpp != 16)
tile->zcomp |= 0x04000000;
#ifdef __BIG_ENDIAN
tile->zcomp |= 0x08000000;
#endif
}
}

View File

@ -49,6 +49,9 @@ nv25_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags,
tile->zcomp |= 0x00100000;
else
tile->zcomp |= 0x00200000;
#ifdef __BIG_ENDIAN
tile->zcomp |= 0x01000000;
#endif
}
}