st/mesa: make update_single_texture() non-static
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 9 May 2017 11:55:00 +0000 (13:55 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Jun 2017 08:04:36 +0000 (10:04 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_texture.h

index a99bc1a1886151996929550956ac81051e915fad..f9d726a609167eb3ece1ef4a2651b702c45e50dc 100644 (file)
 #include "cso_cache/cso_context.h"
 
 
-static GLboolean
-update_single_texture(struct st_context *st,
-                      struct pipe_sampler_view **sampler_view,
-                     GLuint texUnit, unsigned glsl_version)
+/**
+ * Get a pipe_sampler_view object from a texture unit.
+ */
+GLboolean
+st_update_single_texture(struct st_context *st,
+                         struct pipe_sampler_view **sampler_view,
+                         GLuint texUnit, unsigned glsl_version)
 {
    struct gl_context *ctx = st->ctx;
    const struct gl_sampler_object *samp;
@@ -129,8 +132,8 @@ update_textures(struct st_context *st,
          const GLuint texUnit = prog->SamplerUnits[unit];
          GLboolean retval;
 
-         retval = update_single_texture(st, &sampler_view, texUnit,
-                                        glsl_version);
+         retval = st_update_single_texture(st, &sampler_view, texUnit,
+                                           glsl_version);
          if (retval == GL_FALSE)
             continue;
 
index c02d13598ba4d83bb01d5c44563c7a32f8a6b0ff..3931cbad5a636036ef336d215c086a983fa59850 100644 (file)
@@ -273,4 +273,9 @@ st_convert_sampler(const struct st_context *st,
                    const struct gl_sampler_object *msamp,
                    struct pipe_sampler_state *sampler);
 
+GLboolean
+st_update_single_texture(struct st_context *st,
+                         struct pipe_sampler_view **sampler_view,
+                         GLuint texUnit, unsigned glsl_version);
+
 #endif