mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
ir_reader: Don't initialize globals, builtins, or constructors.
All of these are currently emitted as part of the IR, so by initializing them, we actually end up with two copies. For constructors, we may eventually wish to avoid emitting them as part of the IR output.
This commit is contained in:
parent
4ec982fb86
commit
ddf5a011e2
1 changed files with 5 additions and 3 deletions
|
|
@ -63,9 +63,11 @@ _mesa_glsl_read_ir(_mesa_glsl_parse_state *state, exec_list *instructions,
|
|||
printf("\n-------------\n");
|
||||
|
||||
_mesa_glsl_initialize_types(state);
|
||||
_mesa_glsl_initialize_variables(instructions, state);
|
||||
_mesa_glsl_initialize_constructors(instructions, state);
|
||||
_mesa_glsl_initialize_functions(instructions, state);
|
||||
|
||||
/* FINISHME: Constructors probably shouldn't be emitted as part of the IR.
|
||||
* FINISHME: Once they're not, remake them by calling:
|
||||
* FINISHME: _mesa_glsl_initialize_constructors(instructions, state);
|
||||
*/
|
||||
|
||||
read_instructions(state, instructions, expr, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue