anv: handle errors while allocating new binding table blocks
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 6 Mar 2017 11:28:44 +0000 (12:28 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 16 Mar 2017 10:40:05 +0000 (11:40 +0100)
commitdd8348c8be013c40bf1f1838be2dfa5e654bc372
treec9b55cb684214fef6477a52ca2250a85348922bd
parentbe52f9693acb6055f62548e838348c584bbd08d7
anv: handle errors while allocating new binding table blocks

Also, we had a couple of instances in flush_descriptor_sets() were
we were returning a VkResult directly upon error, but the return
value of this function is not a VkResult but a uint32_t dirty mask,
so simply return 0 in these cases which reduces the amount of
work the driver will do after the error has been raised.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/genX_cmd_buffer.c