Update monado (vk_print_result change)

This commit is contained in:
Patrick Nicolas
2023-12-17 11:56:22 +01:00
parent 4053ec64b7
commit 97e620ae1f
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ FetchContent_Declare(tinygltf URL https://github.com/syoyo/tinygltf/archive
# Server dependencies
FetchContent_Declare(monado
GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado
GIT_TAG 3dcd555a6f2071e951010e080916a93353f5dab5
GIT_TAG c7ec85cfd2613f346624bde89b9d00dee5d47ce2
)
+1 -1
View File
@@ -388,7 +388,7 @@ static void comp_wivrn_create_images(struct comp_target * ct,
VkResult res = create_images(cn, image_usage, settings);
if (res != VK_SUCCESS)
{
vk_print_result(get_vk(cn), res, "create_images", __FILE__, __LINE__);
vk_print_result(get_vk(cn), __FILE__, __LINE__, __func__, res, "create_images");
// TODO
abort();
}
+8 -8
View File
@@ -122,14 +122,14 @@ static void destroy_all(YuvConverter * ptr)
vk->vkDestroyShaderModule(vk->device, ptr->vert, nullptr);
}
#define vk_check_throw(fun, res) \
do \
{ \
if (res != VK_SUCCESS) \
{ \
vk_print_result(&this->vk, res, fun, __FILE__, __LINE__); \
throw std::runtime_error(fun "failed"); \
} \
#define vk_check_throw(fun, res) \
do \
{ \
if (res != VK_SUCCESS) \
{ \
vk_print_result(&this->vk, __FILE__, __LINE__, __func__, res, fun); \
throw std::runtime_error(fun "failed"); \
} \
} while (0)
YuvConverter::YuvConverter(vk_bundle * vk, vk_cmd_pool & pool, VkExtent3D extent, int offset_x, int offset_y, int input_width, int input_height) :