From 74685c8136d9a188764dc7c68675996f19c67248 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 31 Mar 2021 23:35:19 +0300 Subject: [PATCH] anv: reuse define for number of render target assert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli Part-of: --- src/intel/vulkan/genX_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 3762963d8fc..0250f53d66d 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1191,7 +1191,7 @@ emit_cb_state(struct anv_graphics_pipeline *pipeline, break; /* We can have at most 8 attachments */ - assert(i < 8); + assert(i < MAX_RTS); if (info == NULL || binding->index >= info->attachmentCount) { state_pos = write_disabled_blend(state_pos);