mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
fixup compile
This commit is contained in:
parent
462754f918
commit
07076b1dcb
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue