radv: fix error code when initializing the push descriptors
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 8 Sep 2017 14:09:46 +0000 (16:09 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 8 Sep 2017 14:15:21 +0000 (16:15 +0200)
malloc() failures are unrelated to the device memory.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index 406399fb3578fdd60705cc9fe2bb38d94ea51cdc..dff96a1e8ae9daf8616cda22a3641f7282538e27 100644 (file)
@@ -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;
                }