shader: add vrend_ prefix to shader_lookup_sampler_array()

Just like all the other non-static vrend_shader functions.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Emil Velikov 6 years ago committed by Emil Velikov
parent 7a0ff8da57
commit 5a0d3f071e
  1. 2
      src/vrend_renderer.c
  2. 2
      src/vrend_shader.c
  3. 2
      src/vrend_shader.h

@ -1174,7 +1174,7 @@ static void bind_sampler_locs(struct vrend_linked_shader_program *sprog,
uint32_t i = u_bit_scan(&mask); uint32_t i = u_bit_scan(&mask);
char name[64]; char name[64];
if (sprog->ss[id]->sel->sinfo.num_sampler_arrays) { 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); snprintf(name, 32, "%ssamp%d[%d]", prefix, arr_idx, i - arr_idx);
} else } else
snprintf(name, 32, "%ssamp%d", prefix, i); snprintf(name, 32, "%ssamp%d", prefix, i);

@ -751,7 +751,7 @@ static int lookup_sampler_array(struct dump_ctx *ctx, int index)
return -1; 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; int i;
for (i = 0; i < sinfo->num_sampler_arrays; i++) { for (i = 0; i < sinfo->num_sampler_arrays; i++) {

@ -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); 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, bool vrend_shader_create_passthrough_tcs(struct vrend_context *ctx,
struct vrend_shader_cfg *cfg, struct vrend_shader_cfg *cfg,

Loading…
Cancel
Save