summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_texture.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-12-13 09:33:49 -0700
committerBrian Paul <[email protected]>2013-12-13 16:06:06 -0700
commit31b0e7d02429d33a36279ddf4dbc414056aff34f (patch)
treed5bd093ef71947540db3d37ce69fbddfdcccb065 /src/mesa/state_tracker/st_texture.h
parent9f9860b004e4e3ca423514fc0ed79cedd2e4d7d4 (diff)
st/mesa: add const qualifiers in sampler validation code
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r--src/mesa/state_tracker/st_texture.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index c15aeaea685..ac93d9655bc 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -112,6 +112,12 @@ st_texture_object(struct gl_texture_object *obj)
return (struct st_texture_object *) obj;
}
+static INLINE const struct st_texture_object *
+st_texture_object_const(const struct gl_texture_object *obj)
+{
+ return (const struct st_texture_object *) obj;
+}
+
static INLINE struct pipe_resource *
st_get_texobj_resource(struct gl_texture_object *texObj)