diff options
author | Chad Versace <[email protected]> | 2015-10-19 11:39:30 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-10-20 11:29:16 -0700 |
commit | 2484d1a01fff6127b45280ee9bfbd1bbfaa425db (patch) | |
tree | b814676f7dec0a2be91887ac93e2fafe88398246 /src/vulkan/anv_cmd_buffer.c | |
parent | b51468b519f447c8e0afd492ce09d7c9485e222b (diff) |
anv/pipeline: Fix requirement for depthstencil state
The Vulkan spec allows VkGraphicsPipelineCreateInfo::pDepthStencilState
to be NULL when the pipeline's subpass contains no depthstencil
attachment (see spec quote below). anv_pipeline_init_dynamic_state()
required it unconditionally.
This path fixes anv_pipeline_init_dynamic_state() to access
pDepthStencilState only when there is a depthstencil attachment.
From the Vulkan spec (20 Oct 2015, git-aa308cb)
pDepthStencilState [...] may only be NULL if renderPass and subpass
specify a subpass that has no depth/stencil attachment.
Diffstat (limited to 'src/vulkan/anv_cmd_buffer.c')
0 files changed, 0 insertions, 0 deletions