glsl: Modify interface to link_invalidate_variable_locations
This will make it easier to unit test this function in successive patches. Also, correct the prototype in linker.h. It was... wrong. v2: Split the interface change from adding the unit tests. Suggested by Paul. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
@@ -31,8 +31,8 @@ link_function_calls(gl_shader_program *prog, gl_shader *main,
|
||||
gl_shader **shader_list, unsigned num_shaders);
|
||||
|
||||
extern void
|
||||
link_invalidate_variable_locations(gl_shader *sh, enum ir_variable_mode mode,
|
||||
int generic_base);
|
||||
link_invalidate_variable_locations(exec_list *ir, int input_base,
|
||||
int output_base);
|
||||
|
||||
extern void
|
||||
link_assign_uniform_locations(struct gl_shader_program *prog);
|
||||
|
Reference in New Issue
Block a user