mesa/glsl: add nir fields to the gl shader structs

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31137>
This commit is contained in:
Timothy Arceri
2024-05-17 16:40:19 +10:00
committed by Marge Bot
parent a9095f0dbf
commit 90e76d34ff
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -2447,6 +2447,8 @@ _mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader,
}
ralloc_free(shader->ir);
ralloc_free(shader->nir);
shader->nir = NULL;
shader->ir = new(shader) exec_list;
if (!state->error && !state->translation_unit.is_empty())
_mesa_ast_to_hir(shader->ir, state);