From 7e60d5a501f311fa5e7bca5335adc6013dc1aeb9 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 20 Feb 2019 17:13:49 +1100 Subject: glsl: use NIR function inlining for drivers that use glsl_to_nir() glsl_to_nir() is still missing support for converting certain functions to NIR, so for those we use the GLSL IR optimisations to remove the functions. Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/brw_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index ffb49c35cd4..e58ed7c8e48 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -93,7 +93,7 @@ brw_create_nir(struct brw_context *brw, if (shader_prog->data->spirv) { nir = _mesa_spirv_to_nir(ctx, shader_prog, stage, options); } else { - nir = glsl_to_nir(shader_prog, stage, options); + nir = glsl_to_nir(ctx, shader_prog, stage, options); } assert (nir); -- cgit v1.2.3