From ae15b4fd733597880fee5357fb2d1f2f100b30c1 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 13 Mar 2020 12:05:25 -0500 Subject: [PATCH] anv: Fix the comparison in an assert Fixes: e03f9652801 "anv: Bounds-check pushed UBOs when ..." Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2