anv: Add error handling to setup_empty_execbuf().
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 18 Aug 2017 18:00:42 +0000 (11:00 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 22 Aug 2017 18:54:16 +0000 (11:54 -0700)
commit7ca124a6a3987fbfc09bc530761d44714c0da773
treef94cc9f883ae1c21fca3498bf49808104206201a
parent4d807d7fe272db97fb9e20800872d5970fa2696d
anv: Add error handling to setup_empty_execbuf().

The anv_execbuf_add_bo() call can actually fail in practice, which
should cause the QueueSubmit operation to fail.  Reported by Coverity.

CID: 1416606: Unchecked return value (CHECKED_RETURN)
Fixes: 017cdb10cf (anv: Submit a dummy batch when only semaphores are provided.)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_batch_chain.c