mesa: Remove unused gl_program::Attributes

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Ian Romanick
2011-08-18 15:43:50 -07:00
parent 24409ba196
commit 35613afee3
5 changed files with 0 additions and 34 deletions

View File

@@ -1559,14 +1559,6 @@ ir_to_mesa_visitor::visit(ir_dereference_variable *ir)
entry = new(mem_ctx) variable_storage(var,
PROGRAM_INPUT,
var->location);
if (this->prog->Target == GL_VERTEX_PROGRAM_ARB &&
var->location >= VERT_ATTRIB_GENERIC0) {
_mesa_add_attribute(this->prog->Attributes,
var->name,
_mesa_sizeof_glsl_type(var->type->gl_type),
var->type->gl_type,
var->location - VERT_ATTRIB_GENERIC0);
}
break;
case ir_var_out:
assert(var->location != -1);
@@ -3048,7 +3040,6 @@ get_mesa_program(struct gl_context *ctx,
if (!prog)
return NULL;
prog->Parameters = _mesa_new_parameter_list();
prog->Attributes = _mesa_new_parameter_list();
v.ctx = ctx;
v.prog = prog;
v.shader_program = shader_program;