diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/panfrost/midgard/cmdline.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c index 0850618bc3d..a8120578283 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c @@ -116,7 +116,7 @@ load_glsl(unsigned num_files, char* const* files, gl_shader_stage stage) if (!prog) errx(1, "couldn't parse `%s'", files[0]); - nir_shader *nir = glsl_to_nir(prog, stage, nir_options); + nir_shader *nir = glsl_to_nir(&local_ctx, prog, stage, nir_options); /* required NIR passes: */ if (nir_options->lower_all_io_to_temps || diff --git a/src/gallium/drivers/panfrost/midgard/cmdline.c b/src/gallium/drivers/panfrost/midgard/cmdline.c index 7326402dd09..acd810b2f34 100644 --- a/src/gallium/drivers/panfrost/midgard/cmdline.c +++ b/src/gallium/drivers/panfrost/midgard/cmdline.c @@ -66,11 +66,11 @@ compile_shader(char **argv) } midgard_program compiled; - nir = glsl_to_nir(prog, MESA_SHADER_VERTEX, &midgard_nir_options); + nir = glsl_to_nir(&local_ctx, prog, MESA_SHADER_VERTEX, &midgard_nir_options); midgard_compile_shader_nir(nir, &compiled, false); finalise_to_disk("vertex.bin", &compiled.compiled); - nir = glsl_to_nir(prog, MESA_SHADER_FRAGMENT, &midgard_nir_options); + nir = glsl_to_nir(&local_ctx, prog, MESA_SHADER_FRAGMENT, &midgard_nir_options); midgard_compile_shader_nir(nir, &compiled, false); finalise_to_disk("fragment.bin", &compiled.compiled); } @@ -91,7 +91,7 @@ compile_blend(char **argv) prog->_LinkedShaders[MESA_SHADER_FRAGMENT]->Program->info.stage = MESA_SHADER_FRAGMENT; midgard_program program; - nir = glsl_to_nir(prog, MESA_SHADER_FRAGMENT, &midgard_nir_options); + nir = glsl_to_nir(&local_ctx, prog, MESA_SHADER_FRAGMENT, &midgard_nir_options); midgard_compile_shader_nir(nir, &program, true); finalise_to_disk("blend.bin", &program.compiled); } |