diff options
Diffstat (limited to 'src/freedreno/vulkan/tu_shader.c')
-rw-r--r-- | src/freedreno/vulkan/tu_shader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c index 5d5e6524783..d87aa1dbf71 100644 --- a/src/freedreno/vulkan/tu_shader.c +++ b/src/freedreno/vulkan/tu_shader.c @@ -68,16 +68,16 @@ tu_spirv_to_nir(struct ir3_compiler *compiler, num_spec = spec_info->mapEntryCount; } - nir_function *entry_point = + nir_shader *nir = spirv_to_nir(words, word_count, spec, num_spec, stage, entry_point_name, &spirv_options, nir_options); free(spec); - assert(entry_point->shader->info.stage == stage); - nir_validate_shader(entry_point->shader, "after spirv_to_nir"); + assert(nir->info.stage == stage); + nir_validate_shader(nir, "after spirv_to_nir"); - return entry_point->shader; + return nir; } static void |