From 69e97670bcaa7efe801429251a678813f096f5ff Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 24 Nov 2018 02:55:40 -0800 Subject: [PATCH] iris: add an extra BT assert from Chris Wilson --- src/gallium/drivers/iris/iris_state.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d561b83ef53..0b5e1a3aa01 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -3575,7 +3575,9 @@ use_image(struct iris_batch *batch, struct iris_context *ice, #define push_bt_entry(addr) \ assert(addr >= binder_addr); \ + assert(s < prog_data->binding_table.size_bytes / sizeof(uint32_t)); \ if (!pin_only) bt_map[s++] = (addr) - binder_addr; + #define bt_assert(section, exists) \ if (!pin_only) assert(prog_data->binding_table.section == \ (exists) ? s : 0xd0d0d0d0) -- 2.30.2