Mesa (master): st/mesa: add comments on a few sampler view functions
Brian Paul
brianp at kemper.freedesktop.org
Fri Jul 24 02:21:43 UTC 2015
Module: Mesa
Branch: master
Commit: d7cb3f76f5c175c95ffbbec40eea5976493f8681
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7cb3f76f5c175c95ffbbec40eea5976493f8681
Author: Brian Paul <brianp at vmware.com>
Date: Thu Jul 23 07:41:09 2015 -0600
st/mesa: add comments on a few sampler view functions
Trivial.
---
src/mesa/state_tracker/st_texture.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c
index 6beb21e..52b0943 100644
--- 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)
More information about the mesa-commit
mailing list