intel/decoder: don't ignore BT entries at offset 0
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27058>
This commit is contained in:

committed by
Marge Bot

parent
7107ed55c0
commit
f78fac623a
@@ -352,8 +352,7 @@ dump_binding_table(struct intel_batch_decode_ctx *ctx,
|
||||
|
||||
const uint32_t *pointers = bind_bo.map;
|
||||
for (int i = 0; i < count; i++) {
|
||||
if (((uintptr_t)&pointers[i] >= ((uintptr_t)bind_bo.map + bind_bo.size)) ||
|
||||
pointers[i] == 0)
|
||||
if (((uintptr_t)&pointers[i] >= ((uintptr_t)bind_bo.map + bind_bo.size)))
|
||||
break;
|
||||
|
||||
uint64_t addr = ctx->surface_base + pointers[i];
|
||||
|
Reference in New Issue
Block a user