From: Samuel Pitoiset Date: Wed, 24 Jun 2020 13:38:19 +0000 (+0200) Subject: radv: fix checking the return value of cs_finalize() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=91a82d006966d5e98feceebd962873b851a6ced1;p=mesa.git 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: --- 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; }