Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit fe18c96

Browse files
hakzsam1ace
authored andcommitted
radv/winsys: fix missing buffer_make_resident() for the null winsys
With latest Fossilize everything should now be captured correctly but without this, all Fossilize databases that need VK_EXT_custom_border_color would just crash. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14821> (cherry picked from commit 1cadd19)
1 parent 2027acf commit fe18c96

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.pick_status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@
22362236
"description": "radv/winsys: fix missing buffer_make_resident() for the null winsys",
22372237
"nominated": true,
22382238
"nomination_type": 0,
2239-
"resolution": 0,
2239+
"resolution": 1,
22402240
"main_sha": null,
22412241
"because_sha": null
22422242
},

src/amd/vulkan/winsys/null/radv_null_bo.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ radv_null_winsys_bo_unmap(struct radeon_winsys_bo *_bo)
6565
{
6666
}
6767

68+
static VkResult
69+
radv_null_winsys_bo_make_resident(struct radeon_winsys *_ws, struct radeon_winsys_bo *_bo,
70+
bool resident)
71+
{
72+
return VK_SUCCESS;
73+
}
74+
6875
static void
6976
radv_null_winsys_bo_destroy(struct radeon_winsys *_ws, struct radeon_winsys_bo *_bo)
7077
{
@@ -80,4 +87,5 @@ radv_null_bo_init_functions(struct radv_null_winsys *ws)
8087
ws->base.buffer_destroy = radv_null_winsys_bo_destroy;
8188
ws->base.buffer_map = radv_null_winsys_bo_map;
8289
ws->base.buffer_unmap = radv_null_winsys_bo_unmap;
90+
ws->base.buffer_make_resident = radv_null_winsys_bo_make_resident;
8391
}

0 commit comments

Comments
 (0)