glsl: Pull interpolation_string() out of ir_variable.

Future patches will need to call this function when there isn't an
ir_varible present to refer to.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Paul Berry
2013-10-22 14:48:08 -07:00
parent 1e3e72e305
commit f65feb5335
4 changed files with 22 additions and 20 deletions

View File

@@ -125,9 +125,9 @@ cross_validate_types_and_qualifiers(struct gl_shader_program *prog,
"interpolation qualifier\n",
_mesa_glsl_shader_target_name(producer_type),
output->name,
output->interpolation_string(),
interpolation_string(output->interpolation),
_mesa_glsl_shader_target_name(consumer_type),
input->interpolation_string());
interpolation_string(input->interpolation));
return;
}
}