mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-16 19:30:39 +01:00
Set language_version to 130 (the max currently supported) when reading IR.
This is necessary so _mesa_glsl_initialize_types can create appropriate glsl_types and add them to the symbol table. In the future, we'll want to set it to the max GLSL version supported by the current driver.
This commit is contained in:
parent
34350be2cd
commit
e8b399270d
1 changed files with 5 additions and 0 deletions
|
|
@ -761,6 +761,11 @@ main(int argc, char **argv)
|
|||
|
||||
_mesa_ast_to_hir(&instructions, &state);
|
||||
} else {
|
||||
/* FINISHME: We should initialize this to the max GLSL version supported
|
||||
* FINISHME: by the driver. At the moment, we don't know what that is.
|
||||
*/
|
||||
state.language_version = 130;
|
||||
|
||||
_mesa_glsl_read_ir(&state, &instructions, shader);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue