diff options
Diffstat (limited to 'src/compiler/spirv/spirv2nir.c')
-rw-r--r-- | src/compiler/spirv/spirv2nir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/spirv/spirv2nir.c b/src/compiler/spirv/spirv2nir.c index 5957f064b49..48d2694c963 100644 --- a/src/compiler/spirv/spirv2nir.c +++ b/src/compiler/spirv/spirv2nir.c @@ -74,10 +74,10 @@ int main(int argc, char **argv) struct spirv_to_nir_options spirv_opts = {}; - nir_function *func = spirv_to_nir(map, word_count, NULL, 0, - MESA_SHADER_FRAGMENT, "main", - &spirv_opts, NULL); - nir_print_shader(func->shader, stderr); + nir_shader *nir = spirv_to_nir(map, word_count, NULL, 0, + MESA_SHADER_FRAGMENT, "main", + &spirv_opts, NULL); + nir_print_shader(nir, stderr); return 0; } |