summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_texture.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-01-10 10:03:47 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2008-01-10 10:06:00 +0100
commitede7b00b59b37f078de0663918c0c84d572c27e8 (patch)
tree9625fa23bec799b40d4785fa40ad31f778d945af /src/mesa/pipe/softpipe/sp_texture.h
parent51ea675745f4212c0bd859a940350faf466df102 (diff)
softpipe: Simplify texture memory layout.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_texture.h')
-rw-r--r--src/mesa/pipe/softpipe/sp_texture.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/mesa/pipe/softpipe/sp_texture.h b/src/mesa/pipe/softpipe/sp_texture.h
index 732064d986..e1a5db2791 100644
--- a/src/mesa/pipe/softpipe/sp_texture.h
+++ b/src/mesa/pipe/softpipe/sp_texture.h
@@ -10,29 +10,12 @@ struct softpipe_texture
{
struct pipe_texture base;
- /* Derived from the above:
- */
- unsigned pitch;
- unsigned depth_pitch; /* per-image on i945? */
- unsigned total_height;
-
- unsigned nr_images[PIPE_MAX_TEXTURE_LEVELS];
-
- /* Explicitly store the offset of each image for each cube face or
- * depth value. Pretty much have to accept that hardware formats
- * are going to be so diverse that there is no unified way to
- * compute the offsets of depth/cube images within a mipmap level,
- * so have to store them as a lookup table:
- */
- unsigned *image_offset[PIPE_MAX_TEXTURE_LEVELS]; /**< array [depth] of offsets */
-
- /* Includes image offset tables:
- */
unsigned long level_offset[PIPE_MAX_TEXTURE_LEVELS];
/* The data is held here:
*/
struct pipe_buffer_handle *buffer;
+ unsigned long buffer_size;
};