st/mesa: rename st_texture_release_sampler_view()
authorBrian Paul <brianp@vmware.com>
Wed, 6 Mar 2019 23:15:19 +0000 (16:15 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Mar 2019 02:08:16 +0000 (20:08 -0600)
To st_texture_release_context_sampler_view() to be more clear
that it's context-specific.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_sampler_view.c
src/mesa/state_tracker/st_sampler_view.h

index f30afee75db853fc029d27d854109afd24f645fa..289827927e1671672fd31f287a04d2e9b30172d6 100644 (file)
@@ -748,7 +748,7 @@ destroy_tex_sampler_cb(GLuint id, void *data, void *userData)
    struct gl_texture_object *texObj = (struct gl_texture_object *) data;
    struct st_context *st = (struct st_context *) userData;
 
-   st_texture_release_sampler_view(st, st_texture_object(texObj));
+   st_texture_release_context_sampler_view(st, st_texture_object(texObj));
 }
 
 
index b22aa20d0a1291542c86422f6ff629bde545cbe4..17c209c867fd91af79be3925ed7ddd981812e087 100644 (file)
@@ -185,8 +185,8 @@ st_texture_get_current_sampler_view(const struct st_context *st,
  * which belong to the context before the context is destroyed.
  */
 void
-st_texture_release_sampler_view(struct st_context *st,
-                                struct st_texture_object *stObj)
+st_texture_release_context_sampler_view(struct st_context *st,
+                                        struct st_texture_object *stObj)
 {
    GLuint i;
 
index 47c100df6475bc94f0745dce90e1378648f8b360..d7a4c0d8d6086b2578ba55a4323c7ae6cff6264e 100644 (file)
@@ -58,8 +58,8 @@ st_create_texture_sampler_view(struct pipe_context *pipe,
 
 
 extern void
-st_texture_release_sampler_view(struct st_context *st,
-                                struct st_texture_object *stObj);
+st_texture_release_context_sampler_view(struct st_context *st,
+                                        struct st_texture_object *stObj);
 
 extern void
 st_texture_release_all_sampler_views(struct st_context *st,