summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/p_state.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-01-04 17:06:55 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2008-01-04 18:21:45 +0100
commit1c5f27a18b775b3784fcd265d60e0affa0b31581 (patch)
tree8f9841014fdf5ddd0c4151c6ad1a0977170e6c79 /src/mesa/pipe/p_state.h
parent6f012904318311207a20bbf586f1a9f9f8b7fc20 (diff)
gallium: Make texture target an enum for better debuggability.
Also make enum pipe_format used in a couple more places.
Diffstat (limited to 'src/mesa/pipe/p_state.h')
-rw-r--r--src/mesa/pipe/p_state.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index 16d50fdb82..76e633e930 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -39,6 +39,7 @@
#define PIPE_STATE_H
#include "p_compiler.h"
+#include "p_defines.h"
#include "p_format.h"
/**
@@ -262,8 +263,8 @@ struct pipe_texture
{
/* Effectively the key:
*/
- unsigned target; /**< PIPE_TEXTURE_x */
- enum pipe_format format; /**< PIPE_FORMAT_x */
+ enum pipe_texture_target target; /**< PIPE_TEXTURE_x */
+ enum pipe_format format; /**< PIPE_FORMAT_x */
unsigned first_level;
unsigned last_level;