summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_cmd_buffer.c
diff options
context:
space:
mode:
authorJózef Kucia <[email protected]>2017-10-09 22:42:06 +0200
committerJason Ekstrand <[email protected]>2017-10-09 16:28:43 -0700
commit91ba331ef4fee34085628af12a188924a28cd808 (patch)
tree9fcdadb4689f9659efb80f845cacfca9a834e602 /src/intel/vulkan/genX_cmd_buffer.c
parente0acb630a54a4b24ce14cc0d87fe5e96ae244644 (diff)
anv: Do not assert() on VK_ATTACHMENT_UNUSED
Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Nanley Chery <[email protected]> Cc: [email protected]
Diffstat (limited to 'src/intel/vulkan/genX_cmd_buffer.c')
-rw-r--r--src/intel/vulkan/genX_cmd_buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index 93d360a1bbe..43437c8eb0f 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -2996,10 +2996,11 @@ cmd_buffer_subpass_sync_fast_clear_values(struct anv_cmd_buffer *cmd_buffer)
* render pass and used in the subpass.
*/
const uint32_t a = state->subpass->color_attachments[i].attachment;
- assert(a < state->pass->attachment_count);
if (a == VK_ATTACHMENT_UNUSED)
continue;
+ assert(a < state->pass->attachment_count);
+
/* Store some information regarding this attachment. */
const struct anv_attachment_state *att_state = &state->attachments[a];
const struct anv_image_view *iview = state->framebuffer->attachments[a];