projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3afa40e
)
st/mesa: add comments on a few sampler view functions
author
Brian Paul
<brianp@vmware.com>
Thu, 23 Jul 2015 13:41:09 +0000
(07:41 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 24 Jul 2015 02:19:51 +0000
(20:19 -0600)
Trivial.
src/mesa/state_tracker/st_texture.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_texture.c
b/src/mesa/state_tracker/st_texture.c
index 6beb21e33891bb129df9c24075e5764ee0c7ebd9..52b094330b9b28f0e553350792afb052bbc80e9a 100644
(file)
--- a/
src/mesa/state_tracker/st_texture.c
+++ b/
src/mesa/state_tracker/st_texture.c
@@
-462,6
+462,11
@@
st_texture_get_sampler_view(struct st_context *st,
return free;
}
+
+/**
+ * For the given texture object, release any sampler views which belong
+ * to the calling context.
+ */
void
st_texture_release_sampler_view(struct st_context *st,
struct st_texture_object *stObj)
@@
-478,6
+483,11
@@
st_texture_release_sampler_view(struct st_context *st,
}
}
+
+/**
+ * Release all sampler views attached to the given texture object, regardless
+ * of the context.
+ */
void
st_texture_release_all_sampler_views(struct st_context *st,
struct st_texture_object *stObj)