diff options
author | Tapani Pälli <[email protected]> | 2017-08-25 09:55:39 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2017-09-12 09:42:00 +0300 |
commit | d083bc1c4b162ae23495fd9236d5fba27c04075b (patch) | |
tree | 25f35781e785b05c2e971b318f1f8954ba135688 /src/intel/vulkan/anv_wsi.c | |
parent | 73638be11f4fbb016f6c6d2934134c0d2455d798 (diff) |
anv: wire up vk_errorf macro to do debug reporting
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_wsi.c')
-rw-r--r-- | src/intel/vulkan/anv_wsi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index 00edb220b2b..c3e5dc1870b 100644 --- a/src/intel/vulkan/anv_wsi.c +++ b/src/intel/vulkan/anv_wsi.c @@ -248,7 +248,8 @@ anv_wsi_image_create(VkDevice device_h, surface->isl.row_pitch, I915_TILING_X); if (ret) { /* FINISHME: Choose a better error. */ - result = vk_errorf(VK_ERROR_OUT_OF_DEVICE_MEMORY, + result = vk_errorf(device->instance, device, + VK_ERROR_OUT_OF_DEVICE_MEMORY, "set_tiling failed: %m"); goto fail_alloc_memory; } @@ -256,7 +257,8 @@ anv_wsi_image_create(VkDevice device_h, int fd = anv_gem_handle_to_fd(device, memory->bo->gem_handle); if (fd == -1) { /* FINISHME: Choose a better error. */ - result = vk_errorf(VK_ERROR_OUT_OF_DEVICE_MEMORY, + result = vk_errorf(device->instance, device, + VK_ERROR_OUT_OF_DEVICE_MEMORY, "handle_to_fd failed: %m"); goto fail_alloc_memory; } |