From: Jason Ekstrand Date: Fri, 13 Mar 2020 17:05:25 +0000 (-0500) Subject: anv: Fix the comparison in an assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae15b4fd733597880fee5357fb2d1f2f100b30c1;p=mesa.git anv: Fix the comparison in an assert Fixes: e03f9652801 "anv: Bounds-check pushed UBOs when ..." Reviewed-by: Lionel Landwerlin Part-of: --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 0e304694004..49a9e8c6913 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -2940,7 +2940,7 @@ get_push_range_bound_size(struct anv_cmd_buffer *cmd_buffer, struct anv_descriptor_set *set = gfx_state->base.descriptors[range->index]; assert(range->start * 32 < set->desc_mem.alloc_size); - assert((range->start + range->length) * 32 < set->desc_mem.alloc_size); + assert((range->start + range->length) * 32 <= set->desc_mem.alloc_size); return set->desc_mem.alloc_size - range->start * 32; }