From: Caio Marcelo de Oliveira Filho Date: Sun, 19 May 2019 06:57:25 +0000 (-0700) Subject: glspirv: Don't re-use entry_point pointer from spirv_to_nir X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee59bac9f4db46c48a13fd5ee5e804f6a625ecea;p=mesa.git glspirv: Don't re-use entry_point pointer from spirv_to_nir Replace its use with checking for is_entrypoint. This is a preparation to change spirv_to_nir() return type. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c index 84550e96ff6..8d1ac9b5072 100644 --- a/src/mesa/main/glspirv.c +++ b/src/mesa/main/glspirv.c @@ -251,7 +251,7 @@ _mesa_spirv_to_nir(struct gl_context *ctx, /* Pick off the single entrypoint that we want */ foreach_list_typed_safe(nir_function, func, node, &nir->functions) { - if (func != entry_point) + if (!func->is_entrypoint) exec_node_remove(&func->node); } assert(exec_list_length(&nir->functions) == 1);