Permalink
Browse files

nv50: attempt to allocate compressed Z buffers

This should automagically fallback to the non-compressed version on kernels
that don't support compression.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information...
1 parent 46acb7e commit 42c16ff33dcca6cd9bae62fe0d71a40452e03581 @skeggsb committed Feb 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/nv_accel_common.c
@@ -86,7 +86,7 @@ nouveau_allocate_surface(ScrnInfoPtr scrn, int width, int height, int bpp,
tile_mode = 0;
if (usage_hint & NOUVEAU_CREATE_PIXMAP_ZETA)
- tile_flags = 0x2800;
+ tile_flags = 0x22800;
else if (usage_hint & NOUVEAU_CREATE_PIXMAP_SCANOUT)
tile_flags = (bpp == 16 ? 0x7000 : 0x7a00);
else

0 comments on commit 42c16ff

Please sign in to comment.