anv: implement VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT_EXT
authorIván Briano <ivan.briano@intel.com>
Wed, 20 May 2020 19:38:46 +0000 (12:38 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Jun 2020 00:48:39 +0000 (00:48 +0000)
commit23633f6c694cde75e9347d7a18e79c08413bc022
tree0ea1e4899677ac1513fc1f0ce05cd8220d89b144
parent13f44596d72d1d0e0651e6ccd71831dcc2b8a3e5
anv: implement VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT_EXT

v2:
* Set pPipeline to NULL in the corresponding
  graphics/compute_create_pipeline function.
* Keep current ANV behavior of bailing on the first real error.

v3:
* Don't return early if the pipeline succeeded.

v:4(5?):
* Simplify return conditions.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5136>
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/genX_pipeline.c