From 91a82d006966d5e98feceebd962873b851a6ced1 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 24 Jun 2020 15:38:19 +0200 Subject: [PATCH] radv: fix checking the return value of cs_finalize() cs_finalize() now returns a Vulkan error code and VK_SUCCESS is 0. Fixes: 64a92ef7a26 ("radv/winsys: Distinguish device/host memory errors.") Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index d16235f7ce1..534fd5fd47a 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -4197,7 +4197,7 @@ radv_get_preamble_cs(struct radv_queue *queue, RADV_CMD_FLAG_START_PIPELINE_STATS, 0); } - if (!queue->device->ws->cs_finalize(cs)) + if (queue->device->ws->cs_finalize(cs) != VK_SUCCESS) goto fail; } -- 2.30.2