Commit c9c8c2f7 authored by Lionel Landwerlin's avatar Lionel Landwerlin

anv: fix crash in vkCmdClearAttachments with unused attachment

anv_render_pass_compile() turns an unused attachment into a NULL
depth_stencil_attachment pointer so check that pointer before
accessing it.

Found with updates to existing CTS tests.
Signed-off-by: default avatarLionel Landwerlin <>
Fixes: 208be8ea ("anv: Make subpass::depth_stencil_attachment a pointer")
Reviewed-by: default avatarEric Engestrom <>
Reviewed-by: default avatarJuan A. Suarez <>
parent b650f3d1
Pipeline #4643 failed