mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
anv/pipeline: Remove a meta hack from emit_ds_state
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
69b2e931d4
commit
9d65595c06
1 changed files with 1 additions and 4 deletions
|
|
@ -740,10 +740,7 @@ emit_ds_state(struct anv_pipeline *pipeline,
|
|||
};
|
||||
|
||||
VkImageAspectFlags aspects = 0;
|
||||
if (pass->attachments == NULL) {
|
||||
/* This comes from meta. Assume we have verything. */
|
||||
aspects = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||
} else if (subpass->depth_stencil_attachment != VK_ATTACHMENT_UNUSED) {
|
||||
if (subpass->depth_stencil_attachment != VK_ATTACHMENT_UNUSED) {
|
||||
VkFormat depth_stencil_format =
|
||||
pass->attachments[subpass->depth_stencil_attachment].format;
|
||||
aspects = vk_format_aspects(depth_stencil_format);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue