summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/p_state.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-06-22 13:37:47 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-22 13:37:47 -0600
commit5d69aeb0028f44d06093faede5c545908b0df89a (patch)
treeab6ed83af7f9f0c590e0ab1cd0b2f156217f127f /src/mesa/pipe/p_state.h
parent13682d959ddacde1ce65843aa8c5b43dc9017b32 (diff)
initial texture object, texture format code
Diffstat (limited to 'src/mesa/pipe/p_state.h')
-rw-r--r--src/mesa/pipe/p_state.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index f3723eb87e..3e3da7cce6 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -231,4 +231,18 @@ struct pipe_sampler_state
GLfloat max_anisotropy;
};
+
+/**
+ * XXX rough approximation...
+ */
+struct pipe_texture_object
+{
+ GLuint format:5; /**< PIPE_FORMAT_x */
+ GLuint width:13; /**< 13 bits = 8K max size */
+ GLuint height:13;
+ GLuint depth:13;
+ GLubyte *data; /**< only valid while buffer mapped? */
+};
+
+
#endif