From: Iago Toral Quiroga Date: Wed, 19 Jul 2017 10:49:33 +0000 (+0200) Subject: anv/cmd_buffer: fix off by one error in assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a848e693efc8e2a1d355dc1076409968b374153f;p=mesa.git anv/cmd_buffer: fix off by one error in assertion Cc: "17.2" Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index 7317674843b..3b59af8f6f4 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -566,7 +566,7 @@ void anv_CmdBindVertexBuffers( /* We have to defer setting up vertex buffer since we need the buffer * stride from the pipeline. */ - assert(firstBinding + bindingCount < MAX_VBS); + assert(firstBinding + bindingCount <= MAX_VBS); for (uint32_t i = 0; i < bindingCount; i++) { vb[firstBinding + i].buffer = anv_buffer_from_handle(pBuffers[i]); vb[firstBinding + i].offset = pOffsets[i];