diff options
author | Timothy Arceri <[email protected]> | 2019-02-20 17:13:49 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-03-06 23:05:20 +0000 |
commit | 7e60d5a501f311fa5e7bca5335adc6013dc1aeb9 (patch) | |
tree | 9dac6cae42a538fd3d904920e11058d8a1c8ba8c /src/mesa/drivers | |
parent | 7530d4abfcf9d39fb1b4abeb77cdbf6cf1d411a7 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |