mesa/glsl: set num_textures per stage directly in shader_info
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -149,7 +149,6 @@ glsl_to_nir(const struct gl_shader_program *shader_prog,
|
||||
shader->info->name = ralloc_asprintf(shader, "GLSL%d", shader_prog->Name);
|
||||
if (shader_prog->Label)
|
||||
shader->info->label = ralloc_strdup(shader, shader_prog->Label);
|
||||
shader->info->num_textures = util_last_bit(sh->Program->SamplersUsed);
|
||||
shader->info->clip_distance_array_size = sh->Program->ClipDistanceArraySize;
|
||||
shader->info->cull_distance_array_size = sh->Program->CullDistanceArraySize;
|
||||
shader->info->has_transform_feedback_varyings =
|
||||
|
Reference in New Issue
Block a user