mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 16:20:39 +02:00
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:
parent
787079e52a
commit
0113a2d4b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue