diff --git a/src/panfrost/compiler/bifrost/bifrost_compile.c b/src/panfrost/compiler/bifrost/bifrost_compile.c index eef98dd6cf1..d2de0699825 100644 --- a/src/panfrost/compiler/bifrost/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost/bifrost_compile.c @@ -7005,9 +7005,13 @@ bifrost_compile_shader_nir(nir_shader *nir, nir_function_impl *entrypoint = nir_shader_get_entrypoint(nir); if (entrypoint->preamble) { pilot = nir_shader_create(nir, MESA_SHADER_COMPUTE, nir->options); + + pilot->info = nir->info; + pilot->info.stage = MESA_SHADER_COMPUTE; pilot->info.workgroup_size[0] = 1; pilot->info.workgroup_size[1] = 1; pilot->info.workgroup_size[2] = 1; + memset(&pilot->info.cs, 0, sizeof(pilot->info.cs)); nir_function *pilot_main = entrypoint->preamble; nir_steal_function(pilot, pilot_main);