anv/cmd_buffer: Refactor ensure_push_descriptor_set
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Dec 2017 20:33:34 +0000 (12:33 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 24 Jan 2018 05:10:28 +0000 (21:10 -0800)
commit90cceaa9dd3b12e039a131a50c6866dce04e7fb2
treecaa80c96cb0b150faefab069d47980b4ccdbaf89
parentd5592e2fdaa9ce8b98d38b2d29e2a7d2c4abda08
anv/cmd_buffer: Refactor ensure_push_descriptor_set

It's now a function which returns the push descriptor set.  Since we set
the error on the command buffer, returning the error is a little
redundant.  Returning the descriptor set (or NULL on error) is more
convenient.

Tested-by: Józef Kucia <joseph.kucia@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Cc: "18.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_cmd_buffer.c