[Mesa-dev] [PATCH] radv: fix error code when initializing the push descriptors

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Sep 8 14:14:08 UTC 2017


r-b

On Fri, Sep 8, 2017 at 4:09 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> malloc() failures are unrelated to the device memory.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  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 4de24c96e6..35985b71ce 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -2147,7 +2147,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;
>                 }
>
> --
> 2.14.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list