summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_cmd_buffer.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-09-08 16:09:46 +0200
committerSamuel Pitoiset <[email protected]>2017-09-08 16:15:21 +0200
commit988d792375051d3745471746028eb05364a41009 (patch)
tree671e7b27a534fdada8faf33e84c6cca9245fa56b /src/amd/vulkan/radv_cmd_buffer.c
parent67ee31a086e584ec163ad2232d82d2d701068475 (diff)
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]>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 406399fb357..dff96a1e8ae 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;
}