summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30/nv30_state.h
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/nv30/nv30_state.h
parentac2e8491117dcf4a608eff4f52a9e34c1bea2a03 (diff)
nv: define NV30/40/50_MAX_TEXTURE_LEVELS
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_state.h')
-rw-r--r--src/gallium/drivers/nv30/nv30_state.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv30/nv30_state.h b/src/gallium/drivers/nv30/nv30_state.h
index e42e872de75..66c26360cb2 100644
--- a/src/gallium/drivers/nv30/nv30_state.h
+++ b/src/gallium/drivers/nv30/nv30_state.h
@@ -70,6 +70,8 @@ struct nv30_fragment_program {
struct nouveau_stateobj *so;
};
+#define NV30_MAX_TEXTURE_LEVELS 16
+
struct nv30_miptree {
struct pipe_texture base;
struct nouveau_bo *bo;
@@ -80,7 +82,7 @@ struct nv30_miptree {
struct {
uint pitch;
uint *image_offset;
- } level[PIPE_MAX_TEXTURE_LEVELS];
+ } level[NV30_MAX_TEXTURE_LEVELS];
};
#endif