anv: handle errors in emit_binding_table() and emit_samplers()
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 9 Mar 2017 10:34:22 +0000 (11:34 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 16 Mar 2017 10:40:05 +0000 (11:40 +0100)
commit1d7468311d99c2da666fa98514592edf923dd195
tree5cd58375d35bc4719bd7699f8476c20088e1085a
parentdd8348c8be013c40bf1f1838be2dfa5e654bc372
anv: handle errors in emit_binding_table() and emit_samplers()

These can fail to allocate device memory, however, the driver can recover
from this error by allocating a new binding table block and trying again.

v2:
  - Instead of tracking the errors in these functions and making callers
    reset the batch's status before attempting to allocate a new block
    for the binding table, simply make callers responsible for setting
    the error status if they fail to allocate memory during the second
    attempt (Jason).

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