summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-03-08 14:02:38 -0700
committerBrian Paul <[email protected]>2010-03-08 16:26:44 -0700
commit891f7f4d52656ddbb445ef1992e8de05763ce680 (patch)
tree4bd5588ca8c306fd0ba4db0df9dc8a1eaeeee313 /src/gallium/drivers/nv50
parentac2e8491117dcf4a608eff4f52a9e34c1bea2a03 (diff)
nv: define NV30/40/50_MAX_TEXTURE_LEVELS
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/nv50_context.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.h b/src/gallium/drivers/nv50/nv50_context.h
index c540594b949..044437e75fa 100644
--- a/src/gallium/drivers/nv50/nv50_context.h
+++ b/src/gallium/drivers/nv50/nv50_context.h
@@ -90,10 +90,12 @@ struct nv50_miptree_level {
unsigned tile_mode;
};
+#define NV50_MAX_TEXTURE_LEVELS 16
+
struct nv50_miptree {
struct nouveau_miptree base;
- struct nv50_miptree_level level[PIPE_MAX_TEXTURE_LEVELS];
+ struct nv50_miptree_level level[NV50_MAX_TEXTURE_LEVELS];
int image_nr;
int total_size;
};