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 <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7151>
This commit is contained in:
Boris Brezillon 2020-10-12 14:28:46 +02:00
parent 6d3fce5680
commit c7748968ba
1 changed files with 1 additions and 0 deletions

View File

@ -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 =