From c7748968ba0fdad324f561e0219fdb6812d7df2c Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Mon, 12 Oct 2020 14:28:46 +0200 Subject: [PATCH] panfrost: Flag blend shader function as an entry point Some lowering functions used by bifrost are searching for an entry point. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_blend_shaders.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/panfrost/pan_blend_shaders.c b/src/gallium/drivers/panfrost/pan_blend_shaders.c index e02f882..bdefdec 100644 --- a/src/gallium/drivers/panfrost/pan_blend_shaders.c +++ b/src/gallium/drivers/panfrost/pan_blend_shaders.c @@ -145,6 +145,7 @@ panfrost_create_blend_shader(struct panfrost_context *ctx, nir_shader *shader = nir_shader_create(ctx, MESA_SHADER_FRAGMENT, &midgard_nir_options, NULL); nir_function *fn = nir_function_create(shader, "main"); + fn->is_entrypoint = true; nir_function_impl *impl = nir_function_impl_create(fn); const struct util_format_description *format_desc = -- 2.7.4