Module: Mesa
Branch: main
Commit: f78fac623a1043fc9f42048651aca77f1cca8644
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f78fac623a1043fc9f42048651aca77f1cca8644

Author: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Date:   Sun Jan 14 11:00:01 2024 +0200

intel/decoder: don't ignore BT entries at offset 0

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Reviewed-by: Tapani Pälli <tapani.pa...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27058>

---

 src/intel/common/intel_batch_decoder.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/intel/common/intel_batch_decoder.c 
b/src/intel/common/intel_batch_decoder.c
index 987e9d0b514..126a6e946c3 100644
--- a/src/intel/common/intel_batch_decoder.c
+++ b/src/intel/common/intel_batch_decoder.c
@@ -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];

Reply via email to