From ee59bac9f4db46c48a13fd5ee5e804f6a625ecea Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Sat, 18 May 2019 23:57:25 -0700 Subject: [PATCH] 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 --- src/mesa/main/glspirv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2