summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_context.h
diff options
context:
space:
mode:
authorXavier Chantry <chantry.xavier@gmail.com>2010-10-15 15:53:13 +0200
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-10-15 15:54:02 +0200
commit9c439e3c7af7fd1704d44e3ba1a013de7febde37 (patch)
tree6a0b7eb8239f99eda7f2dee3989ca14cac882666 /src/gallium/drivers/nv50/nv50_context.h
parentac98519c4eed0daf770a9ba380056978e4420352 (diff)
nv50: apply layout_mask to tile_flags
The tile_flags now store more than just nv50 page table entry bits.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_context.h')
-rw-r--r--src/gallium/drivers/nv50/nv50_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.h b/src/gallium/drivers/nv50/nv50_context.h
index ac69c7848e..bf6a577188 100644
--- a/src/gallium/drivers/nv50/nv50_context.h
+++ b/src/gallium/drivers/nv50/nv50_context.h
@@ -26,6 +26,9 @@
#define NOUVEAU_MSG(fmt, args...) \
fprintf(stderr, "nouveau: "fmt, ##args);
+#define nouveau_bo_tile_layout(nvbo) \
+ ((nvbo)->tile_flags & NOUVEAU_BO_TILE_LAYOUT_MASK)
+
/* Constant buffer assignment */
#define NV50_CB_PMISC 0
#define NV50_CB_PVP 1