nvk: Pass an actual nak_compiler to nak_compile_shader()

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Faith Ekstrand 2023-01-30 20:53:18 -06:00 committed by Marge Bot
parent bf72e78e0a
commit 611ed96557

View file

@ -1210,7 +1210,9 @@ nvk_compile_nir_with_nak(struct nvk_physical_device *pdev,
const struct nvk_fs_key *fs_key,
struct nvk_shader *shader)
{
struct nak_shader_bin *bin = nak_compile_shader(nir, NULL);
struct nak_compiler *nak = nak_compiler_create(&pdev->info);
struct nak_shader_bin *bin = nak_compile_shader(nir, nak);
shader->stage = nir->info.stage;
@ -1237,6 +1239,8 @@ nvk_compile_nir_with_nak(struct nvk_physical_device *pdev,
nvk_shader_dump(shader);
#endif
nak_compiler_destroy(nak);
return VK_SUCCESS;
}