diff options
author | Iago Toral Quiroga <[email protected]> | 2017-07-19 12:49:33 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-08-03 00:19:06 +0100 |
commit | 4bfe327622eec10f5edcc4a3cdcbcd3e869f9910 (patch) | |
tree | 13138ecbcdbfe72825b4aff3b20c2b1e59fc9472 /src/intel | |
parent | 8628d73caf40bb38afd3998a037cad1dbc9e4664 (diff) |
anv/cmd_buffer: fix off by one error in assertion
Cc: "17.2" <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
(cherry picked from commit a848e693efc8e2a1d355dc1076409968b374153f)
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index c65eba287d6..8733ded1c75 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -564,7 +564,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]; |