aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-06-21 14:39:29 +0200
committerSamuel Pitoiset <[email protected]>2018-06-22 17:47:09 +0200
commit68d9517690989d4b4976b4a34d73c35d473baedd (patch)
tree29967eab5ad53e9a17fce18c97d38ff0bbc5e8ba /src
parent07832083d37fc033c77fe2e431983947053e96fd (diff)
radv: check the return values of radv_signal_fence()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_device.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 3c63d8c86d6..681d8a12c75 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -2615,7 +2615,9 @@ VkResult radv_QueueSubmit(
if (fence) {
if (!fence_emitted) {
- radv_signal_fence(queue, fence);
+ result = radv_signal_fence(queue, fence);
+ if (result != VK_SUCCESS)
+ return result;
}
fence->submitted = true;
}
@@ -3172,6 +3174,7 @@ radv_sparse_image_opaque_bind_memory(struct radv_device *device,
RADV_FROM_HANDLE(radv_queue, queue, _queue);
struct radeon_winsys_fence *base_fence = fence ? fence->fence : NULL;
bool fence_emitted = false;
+ VkResult result;
for (uint32_t i = 0; i < bindInfoCount; ++i) {
struct radv_winsys_sem_info sem_info;
@@ -3213,7 +3216,9 @@ radv_sparse_image_opaque_bind_memory(struct radv_device *device,
if (fence) {
if (!fence_emitted) {
- radv_signal_fence(queue, fence);
+ result = radv_signal_fence(queue, fence);
+ if (result != VK_SUCCESS)
+ return result;
}
fence->submitted = true;
}