fixup compile

This commit is contained in:
Faith Ekstrand 2025-12-18 22:34:56 -05:00
parent 462754f918
commit 07076b1dcb

View file

@ -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);