intel/decoder: Fix binding table pointer entry being marked as invalid

If entry goes until the last byte of the bo it was being marked as
not valid while it is valid.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28376>
This commit is contained in:
José Roberto de Souza 2024-03-22 13:07:19 -07:00 committed by Marge Bot
parent 787079e52a
commit 0113a2d4b3

View file

@ -346,7 +346,7 @@ dump_binding_table(struct intel_batch_decode_ctx *ctx,
uint32_t size = strct->dw_length * 4;
if (pointers[i] % 32 != 0 ||
addr < bo.addr || addr + size >= bo.addr + bo.size) {
addr < bo.addr || addr + size > bo.addr + bo.size) {
fprintf(ctx->fp, "pointer %u: 0x%08x <not valid>\n", i, pointers[i]);
continue;
}