mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
nvk: Call into NIL to populate the null descriptor
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30303>
This commit is contained in:
parent
ff6577a000
commit
41d05737ec
1 changed files with 4 additions and 2 deletions
|
|
@ -175,10 +175,12 @@ nvk_CreateDevice(VkPhysicalDevice physicalDevice,
|
|||
goto fail_zero_page;
|
||||
|
||||
/* Reserve the descriptor at offset 0 to be the null descriptor */
|
||||
uint32_t null_image[8] = { 0, };
|
||||
uint32_t null_tic[8] = { 0, };
|
||||
nil_fill_null_tic(&pdev->info, dev->zero_page->va->addr, &null_tic);
|
||||
|
||||
ASSERTED uint32_t null_image_index;
|
||||
result = nvk_descriptor_table_add(dev, &dev->images,
|
||||
null_image, sizeof(null_image),
|
||||
null_tic, sizeof(null_tic),
|
||||
&null_image_index);
|
||||
assert(result == VK_SUCCESS);
|
||||
assert(null_image_index == 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue