mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
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:
parent
bf72e78e0a
commit
611ed96557
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue