diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index a924014..a346011 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -1174,7 +1174,7 @@ static void bind_sampler_locs(struct vrend_linked_shader_program *sprog, uint32_t i = u_bit_scan(&mask); char name[64]; if (sprog->ss[id]->sel->sinfo.num_sampler_arrays) { - int arr_idx = shader_lookup_sampler_array(&sprog->ss[id]->sel->sinfo, i); + int arr_idx = vrend_shader_lookup_sampler_array(&sprog->ss[id]->sel->sinfo, i); snprintf(name, 32, "%ssamp%d[%d]", prefix, arr_idx, i - arr_idx); } else snprintf(name, 32, "%ssamp%d", prefix, i); diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 1bee83d..c22c525 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -751,7 +751,7 @@ static int lookup_sampler_array(struct dump_ctx *ctx, int index) return -1; } -int shader_lookup_sampler_array(struct vrend_shader_info *sinfo, int index) +int vrend_shader_lookup_sampler_array(struct vrend_shader_info *sinfo, int index) { int i; for (i = 0; i < sinfo->num_sampler_arrays; i++) { diff --git a/src/vrend_shader.h b/src/vrend_shader.h index 01b5646..f7c1b44 100644 --- a/src/vrend_shader.h +++ b/src/vrend_shader.h @@ -163,7 +163,7 @@ const char *vrend_shader_samplertypeconv(bool use_gles, int sampler_type, int *i char vrend_shader_samplerreturnconv(enum tgsi_return_type type); -int shader_lookup_sampler_array(struct vrend_shader_info *sinfo, int index); +int vrend_shader_lookup_sampler_array(struct vrend_shader_info *sinfo, int index); bool vrend_shader_create_passthrough_tcs(struct vrend_context *ctx, struct vrend_shader_cfg *cfg,