diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-05-18 23:57:25 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-05-29 10:34:30 -0700 |
commit | ee59bac9f4db46c48a13fd5ee5e804f6a625ecea (patch) | |
tree | ebef61521b78a147ba1e6acc10bab314e0258ce3 /src/mesa/main/glspirv.c | |
parent | c92d0029822f55aeb8e015d865dd4076f0e70062 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main/glspirv.c')
-rw-r--r-- | src/mesa/main/glspirv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |