anv/cmd_buffer: fix off by one error in assertion
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 19 Jul 2017 10:49:33 +0000 (12:49 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 26 Jul 2017 06:02:06 +0000 (08:02 +0200)
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_cmd_buffer.c

index 7317674843b37deb2edd60bee17babe348e91bc2..3b59af8f6f48c0a2db7c4ded13d1c13f5e417fa7 100644 (file)
@@ -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];