mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
glsl: drop _mesa_glsl_copy_symbols_from_table()
Unused since the previous commit Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32293>
This commit is contained in:
parent
3b40db0ef6
commit
4ce9421acb
2 changed files with 0 additions and 48 deletions
|
|
@ -2100,49 +2100,6 @@ set_shader_inout_layout(struct gl_shader *shader,
|
|||
shader->layer_viewport_relative = state->layer_viewport_relative;
|
||||
}
|
||||
|
||||
/* src can be NULL if only the symbols found in the exec_list should be
|
||||
* copied
|
||||
*/
|
||||
void
|
||||
_mesa_glsl_copy_symbols_from_table(struct exec_list *shader_ir,
|
||||
struct glsl_symbol_table *src,
|
||||
struct glsl_symbol_table *dest)
|
||||
{
|
||||
foreach_in_list (ir_instruction, ir, shader_ir) {
|
||||
switch (ir->ir_type) {
|
||||
case ir_type_function:
|
||||
dest->add_function((ir_function *) ir);
|
||||
break;
|
||||
case ir_type_variable: {
|
||||
ir_variable *const var = (ir_variable *) ir;
|
||||
|
||||
if (var->data.mode != ir_var_temporary)
|
||||
dest->add_variable(var);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (src != NULL) {
|
||||
/* Explicitly copy the gl_PerVertex interface definitions because these
|
||||
* are needed to check they are the same during the interstage link.
|
||||
* They can’t necessarily be found via the exec_list because the members
|
||||
* might not be referenced. The GL spec still requires that they match
|
||||
* in that case.
|
||||
*/
|
||||
const glsl_type *iface =
|
||||
src->get_interface("gl_PerVertex", ir_var_shader_in);
|
||||
if (iface)
|
||||
dest->add_interface(glsl_get_type_name(iface), iface, ir_var_shader_in);
|
||||
|
||||
iface = src->get_interface("gl_PerVertex", ir_var_shader_out);
|
||||
if (iface)
|
||||
dest->add_interface(glsl_get_type_name(iface), iface, ir_var_shader_out);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -1096,11 +1096,6 @@ extern int glcpp_preprocess(void *ctx, const char **shader, char **info_log,
|
|||
struct _mesa_glsl_parse_state *state,
|
||||
struct gl_context *gl_ctx);
|
||||
|
||||
extern void
|
||||
_mesa_glsl_copy_symbols_from_table(struct exec_list *shader_ir,
|
||||
struct glsl_symbol_table *src,
|
||||
struct glsl_symbol_table *dest);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue