nouveau: introduce nouveau_miptree common to all nouveau pipe drivers
[mesa.git] / src / gallium / drivers / nv50 / nv50_context.h
index 9b8cc4d37d03397087b175bea37e17ebb055b608..1e9e8e49bfbd2c174cec3d7c2e6f2d3d0320b826 100644 (file)
@@ -71,12 +71,11 @@ struct nv50_sampler_stateobj {
 struct nv50_miptree_level {
        int *image_offset;
        unsigned pitch;
+       unsigned tile_mode;
 };
 
 struct nv50_miptree {
-       struct pipe_texture base;
-
-       struct nouveau_bo *bo;
+       struct nouveau_miptree base;
 
        struct nv50_miptree_level level[PIPE_MAX_TEXTURE_LEVELS];
        int image_nr;
@@ -119,6 +118,7 @@ struct nv50_state {
        struct nouveau_stateobj *fragprog;
        struct nouveau_stateobj *vtxfmt;
        struct nouveau_stateobj *vtxbuf;
+       struct nouveau_stateobj *vtxattr;
 };
 
 struct nv50_context {