From 208be8eafa30be6c5e79fe3235f5404fd803baf1 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 26 Jun 2018 09:22:20 -0700 Subject: anv: Make subpass::depth_stencil_attachment a pointer This makes certain checks a bit easier and means that we don't have the attachment information duplicated in the attachment list and in depth_stencil_attachment. Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_blorp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/vulkan/anv_blorp.c') diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 8e6d7db6e40..c76392fcd97 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -1060,7 +1060,7 @@ clear_depth_stencil_attachment(struct anv_cmd_buffer *cmd_buffer, { static const union isl_color_value color_value = { .u32 = { 0, } }; const struct anv_subpass *subpass = cmd_buffer->state.subpass; - const uint32_t att_idx = subpass->depth_stencil_attachment.attachment; + const uint32_t att_idx = subpass->depth_stencil_attachment->attachment; if (att_idx == VK_ATTACHMENT_UNUSED) return; -- cgit v1.2.3