Commit 884e8403 authored by Marek Olšák's avatar Marek Olšák Committed by Marge Bot

mesa: remove unused LastUniformIndex

This is now dead code.
Reviewed-by: Zoltán Böszörményi's avatarZoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Part-of: <mesa/mesa!8046>
parent 23dc21b9
......@@ -1045,7 +1045,6 @@ write_shader_parameters(struct blob *metadata,
blob_write_uint32(metadata, params->StateFlags);
blob_write_uint32(metadata, params->UniformBytes);
blob_write_uint32(metadata, params->LastUniformIndex);
blob_write_uint32(metadata, params->FirstStateVarIndex);
}
......@@ -1082,7 +1081,6 @@ read_shader_parameters(struct blob_reader *metadata,
params->StateFlags = blob_read_uint32(metadata);
params->UniformBytes = blob_read_uint32(metadata);
params->LastUniformIndex = blob_read_uint32(metadata);
params->FirstStateVarIndex = blob_read_uint32(metadata);
}
......
......@@ -141,7 +141,6 @@ _mesa_new_parameter_list(void)
return NULL;
list->UniformBytes = 0;
list->LastUniformIndex = -1;
list->FirstStateVarIndex = INT_MAX;
return list;
}
......@@ -331,8 +330,6 @@ _mesa_add_parameter(struct gl_program_parameter_list *paramList,
}
if (type == PROGRAM_UNIFORM || type == PROGRAM_CONSTANT) {
paramList->LastUniformIndex =
MAX2(paramList->LastUniformIndex, oldNum);
paramList->UniformBytes =
MAX2(paramList->UniformBytes, paramList->NumParameterValues * 4);
} else if (type == PROGRAM_STATE_VAR) {
......@@ -454,13 +451,11 @@ void
_mesa_recompute_parameter_bounds(struct gl_program_parameter_list *list)
{
list->FirstStateVarIndex = INT_MAX;
list->LastUniformIndex = -1;
for (int i = 0; i < (int)list->NumParameters; i++) {
if (list->Parameters[i].Type == PROGRAM_STATE_VAR) {
list->FirstStateVarIndex = MIN2(list->FirstStateVarIndex, i);
} else {
list->LastUniformIndex = MAX2(list->LastUniformIndex, i);
list->UniformBytes = MAX2(list->UniformBytes, list->NumParameterValues * 4);
}
}
......
......@@ -153,7 +153,6 @@ struct gl_program_parameter_list
* which can't sort parameters.
*/
int UniformBytes;
int LastUniformIndex;
int FirstStateVarIndex;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment