summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
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/state_tracker
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/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c2
-rw-r--r--src/mesa/state_tracker/st_texture.c4
-rw-r--r--src/mesa/state_tracker/st_texture.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index e813bdb47a..773fc0012e 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -97,7 +97,7 @@ st_get_texobj_texture(struct gl_texture_object *texObj)
}
-static unsigned
+static enum pipe_texture_target
gl_target_to_pipe(GLenum target)
{
switch (target) {
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c
index c7d28eeca2..a2bdf846ca 100644
--- a/src/mesa/state_tracker/st_texture.c
+++ b/src/mesa/state_tracker/st_texture.c
@@ -61,8 +61,8 @@ target_to_target(GLenum target)
struct pipe_texture *
st_texture_create(struct st_context *st,
- unsigned target,
- unsigned format,
+ enum pipe_texture_target target,
+ enum pipe_format format,
GLuint first_level,
GLuint last_level,
GLuint width0,
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index 7524c219e0..d8b1bcad9d 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -37,8 +37,8 @@ struct pipe_texture;
extern struct pipe_texture *
st_texture_create(struct st_context *st,
- unsigned target,
- unsigned format,
+ enum pipe_texture_target target,
+ enum pipe_format format,
GLuint first_level,
GLuint last_level,
GLuint width0,