anv/blorp: make anv_cmd_buffer_alloc_blorp_binding_table() return a VkResult
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 9 Mar 2017 10:49:01 +0000 (11:49 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 16 Mar 2017 10:40:05 +0000 (11:40 +0100)
commitbe52f9693acb6055f62548e838348c584bbd08d7
tree88f9d3cd3bd1039d52b137435a5e7f9d2a6264b7
parenta578b06d7bd6d1bb075bc9b8b04af97118bee18f
anv/blorp: make anv_cmd_buffer_alloc_blorp_binding_table() return a VkResult

Instead of asserting inside the function, and then use use that information
to return early from its callers upon failure.

v2:
  - Make sure that clear_color_attachment() and
    clear_depth_stencil_attachment() get the VkResult as well so they
    avoid executing the batch if an error happened. (Topi)

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_blorp_exec.c