Commit d33db63b authored by Ben Skeggs's avatar Ben Skeggs

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

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 4ae20745
...@@ -61,6 +61,9 @@ nv20_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags, ...@@ -61,6 +61,9 @@ nv20_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags,
tile->zcomp |= 0x80000000; tile->zcomp |= 0x80000000;
if (bpp != 16) if (bpp != 16)
tile->zcomp |= 0x04000000; tile->zcomp |= 0x04000000;
#ifdef __BIG_ENDIAN
tile->zcomp |= 0x08000000;
#endif
} }
} }
......
...@@ -49,6 +49,9 @@ nv25_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags, ...@@ -49,6 +49,9 @@ nv25_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags,
tile->zcomp |= 0x00100000; tile->zcomp |= 0x00100000;
else else
tile->zcomp |= 0x00200000; tile->zcomp |= 0x00200000;
#ifdef __BIG_ENDIAN
tile->zcomp |= 0x01000000;
#endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment