radv: fix checking the return value of cs_finalize()
cs_finalize() now returns a Vulkan error code and VK_SUCCESS is 0.
Fixes: 64a92ef7a2
("radv/winsys: Distinguish device/host memory errors.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5629>
This commit is contained in:
@@ -4197,7 +4197,7 @@ radv_get_preamble_cs(struct radv_queue *queue,
|
|||||||
RADV_CMD_FLAG_START_PIPELINE_STATS, 0);
|
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;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user