diff options
Diffstat (limited to 'src/nouveau_local.h')
-rw-r--r-- | src/nouveau_local.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nouveau_local.h b/src/nouveau_local.h index 38b861f..98b33dc 100644 --- a/src/nouveau_local.h +++ b/src/nouveau_local.h @@ -43,6 +43,9 @@ #define NOUVEAU_ALIGN(x,bytes) (((x) + ((bytes) - 1)) & ~((bytes) - 1)) +#define NVC0_TILE_PITCH(m) (64 << ((m) & 0xf)) +#define NVC0_TILE_HEIGHT(m) (8 << ((m) >> 4)) + static inline int log2i(int i) { int r = 0; |