anv: add a check for depthStencilState before using it
authorTapani Pälli <tapani.palli@intel.com>
Sat, 8 Aug 2020 07:28:43 +0000 (10:28 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 11 Aug 2020 08:36:11 +0000 (11:36 +0300)
commit2d010d3dc5f210336d283caaf6453c52cbab6c31
tree5a3743bfb324bc1a9ec5f75d411ae1d74188a9f2
parentffc8f2ba4c2cc38c5612ef20235b90b648c4feff
anv: add a check for depthStencilState before using it

v2: move the code under existing correct check!

Fixes: e4590c075009 ("anv: depth/stencil dynamic state support")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3375
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6240>
src/intel/vulkan/anv_pipeline.c