anv: fix assert in anv_CmdBindDescriptorSets()
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 17 Jul 2018 06:55:48 +0000 (08:55 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 18 Jul 2018 06:54:23 +0000 (08:54 +0200)
commit0f29006256d32cd79e100d2dbde1188387a8dbed
tree097214ecb037006e01cc1b1678b829caa9385d84
parent154fbd03ccb326317dcfdfe193083d121ef70ece
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 <siglesias@igalia.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_cmd_buffer.c