mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
nvk: init dev->physical_device earlier.
When device is passed to bo destroy this is needed earlier. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
cca5f6b280
commit
be456a3be2
1 changed files with 1 additions and 2 deletions
|
|
@ -140,6 +140,7 @@ nvk_CreateDevice(VkPhysicalDevice physicalDevice,
|
||||||
goto fail_alloc;
|
goto fail_alloc;
|
||||||
|
|
||||||
dev->vk.command_buffer_ops = &nvk_cmd_buffer_ops;
|
dev->vk.command_buffer_ops = &nvk_cmd_buffer_ops;
|
||||||
|
dev->pdev = pdev;
|
||||||
|
|
||||||
int ret = nouveau_ws_context_create(pdev->dev, &dev->ctx);
|
int ret = nouveau_ws_context_create(pdev->dev, &dev->ctx);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
@ -214,8 +215,6 @@ nvk_CreateDevice(VkPhysicalDevice physicalDevice,
|
||||||
}
|
}
|
||||||
pthread_condattr_destroy(&condattr);
|
pthread_condattr_destroy(&condattr);
|
||||||
|
|
||||||
dev->pdev = pdev;
|
|
||||||
|
|
||||||
void *zero_map;
|
void *zero_map;
|
||||||
dev->zero_page = nouveau_ws_bo_new_mapped(dev->pdev->dev, 0x1000, 0,
|
dev->zero_page = nouveau_ws_bo_new_mapped(dev->pdev->dev, 0x1000, 0,
|
||||||
NOUVEAU_WS_BO_LOCAL,
|
NOUVEAU_WS_BO_LOCAL,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue