anv/query: handle out of host memory without crashing in compute_query_result()
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 22 Mar 2017 09:15:59 +0000 (10:15 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 24 Mar 2017 08:39:44 +0000 (09:39 +0100)
commit129fd5813190909ad0ce7086e969b69c4807f21e
treec00699eb53cb1bb65483de4b7bd7c885f13a499a
parentddb2bb3ed4c6ebff38be5acb0566894eec0c66ae
anv/query: handle out of host memory without crashing in compute_query_result()

We don't need to make the caller (CmdCopyQueryPoolResults) aware of the
problem since compute_query_result() only emits state. The caller is also
expected to hit OOM in this scenario right after calling this function, but
it is already handling it safely.

Fixes:
dEQP-VK.api.out_of_host_memory.cmd_copy_query_pool_results

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