Skip to content

Commit

Permalink
nv50: attempt to allocate compressed Z buffers
Browse files Browse the repository at this point in the history
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
Ben Skeggs committed Feb 16, 2011
1 parent 46acb7e commit 42c16ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nv_accel_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42c16ff

Please sign in to comment.