radv: fix a potential crash if attachments allocation failed
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Sep 2017 16:47:04 +0000 (18:47 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 15 Sep 2017 07:16:38 +0000 (09:16 +0200)
commit8e8c7c670340e747e9860fb6cbfc3e89f315fcc2
tree13b4ebd090763a91f7a2820457fba3b136d3f2d4
parenta0495d4bb3a3f9e61652c7cab339547edbbef8ba
radv: fix a potential crash if attachments allocation failed

Also, it's useless to set the error code twice. Though, we
should probably skip the next commands when the command buffer
is considered invalid.

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