mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
panvk: Upload all variants at the end of compile_shader()
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com> Acked-by: Eric R. Smith <eric.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38821>
This commit is contained in:
parent
aabdd0f5ca
commit
388a3cff5c
1 changed files with 2 additions and 8 deletions
|
|
@ -1371,13 +1371,6 @@ panvk_compile_shader(struct panvk_device *dev,
|
|||
panvk_shader_destroy(&dev->vk, &shader->vk, pAllocator);
|
||||
return result;
|
||||
}
|
||||
|
||||
result = panvk_shader_upload(dev, variant, pAllocator);
|
||||
|
||||
if (result != VK_SUCCESS) {
|
||||
panvk_shader_destroy(&dev->vk, &shader->vk, pAllocator);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
struct panvk_shader_variant *variant =
|
||||
|
|
@ -1399,9 +1392,10 @@ panvk_compile_shader(struct panvk_device *dev,
|
|||
panvk_shader_destroy(&dev->vk, &shader->vk, pAllocator);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
panvk_shader_foreach_variant(shader, variant) {
|
||||
result = panvk_shader_upload(dev, variant, pAllocator);
|
||||
|
||||
if (result != VK_SUCCESS) {
|
||||
panvk_shader_destroy(&dev->vk, &shader->vk, pAllocator);
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue