diff options
author | Ian Romanick <[email protected]> | 2014-08-01 18:51:30 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-08-07 16:17:53 -0700 |
commit | 1c759e32d8782bae11148896231500727faa883a (patch) | |
tree | f243d6e1965980694d84783ebaa7a0d39d4803b5 /src/mesa/main/uniforms.h | |
parent | e0c867372a2ff57944cfe1987550d29c4c509ebb (diff) |
mesa: Fold _mesa_uniform_split_location_offset into its only caller
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/uniforms.h')
-rw-r--r-- | src/mesa/main/uniforms.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mesa/main/uniforms.h b/src/mesa/main/uniforms.h index 10518dcbb6e..3e1648380bc 100644 --- a/src/mesa/main/uniforms.h +++ b/src/mesa/main/uniforms.h @@ -364,25 +364,6 @@ _mesa_uniform_merge_location_offset(const struct gl_shader_program *prog, return prog->UniformStorage[storage_index].remap_location + uniform_array_index; } - -/** - * Separate the uniform storage index and array index - */ -static inline void -_mesa_uniform_split_location_offset(const struct gl_shader_program *prog, - GLint location, unsigned *storage_index, - unsigned *uniform_array_index) -{ - *storage_index = prog->UniformRemapTable[location] - prog->UniformStorage; - *uniform_array_index = location - - prog->UniformRemapTable[location]->remap_location; - - /*gl_uniform_storage in UniformStorage with the calculated base_location - * must match with the entry in remap table - */ - assert(&prog->UniformStorage[*storage_index] == - prog->UniformRemapTable[location]); -} /*@}*/ |