projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4453672
)
anv/cmd_buffer: fix off by one error in assertion
author
Iago Toral Quiroga
<itoral@igalia.com>
Wed, 19 Jul 2017 10:49:33 +0000
(12:49 +0200)
committer
Iago 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
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_cmd_buffer.c
b/src/intel/vulkan/anv_cmd_buffer.c
index 7317674843b37deb2edd60bee17babe348e91bc2..3b59af8f6f48c0a2db7c4ded13d1c13f5e417fa7 100644
(file)
--- 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];