Module: Mesa Branch: staging/18.1 Commit: 338f589f4d1f0cdfa6006fbb5bf0ff690c46f5f3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=338f589f4d1f0cdfa6006fbb5bf0ff690c46f5f3
Author: Samuel Iglesias Gonsálvez <[email protected]> Date: Tue Jul 17 08:55:48 2018 +0200 anv: fix assert in anv_CmdBindDescriptorSets() The assert is checking that we are not binding more descriptor sets than the supported by the driver. When binding the descriptor set number MAX_SETS-1, it was breaking the assert because descriptorSetCount = 1. Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]> Cc: <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> (cherry picked from commit 0f29006256d32cd79e100d2dbde1188387a8dbed) --- src/intel/vulkan/anv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index 70a0718e3b..67c4f8c875 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -613,7 +613,7 @@ void anv_CmdBindDescriptorSets( ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer); ANV_FROM_HANDLE(anv_pipeline_layout, layout, _layout); - assert(firstSet + descriptorSetCount < MAX_SETS); + assert(firstSet + descriptorSetCount <= MAX_SETS); for (uint32_t i = 0; i < descriptorSetCount; i++) { ANV_FROM_HANDLE(anv_descriptor_set, set, pDescriptorSets[i]); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
