Module: Mesa Branch: master Commit: 988d792375051d3745471746028eb05364a41009 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=988d792375051d3745471746028eb05364a41009
Author: Samuel Pitoiset <[email protected]> Date: Fri Sep 8 16:09:46 2017 +0200 radv: fix error code when initializing the push descriptors malloc() failures are unrelated to the device memory. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> --- src/amd/vulkan/radv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 406399fb35..dff96a1e8a 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2152,7 +2152,7 @@ static bool radv_init_push_descriptor_set(struct radv_cmd_buffer *cmd_buffer, if (!set->mapped_ptr) { cmd_buffer->push_descriptors.capacity = 0; - cmd_buffer->record_result = VK_ERROR_OUT_OF_DEVICE_MEMORY; + cmd_buffer->record_result = VK_ERROR_OUT_OF_HOST_MEMORY; return false; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
