From: Kenneth Graunke Date: Sat, 24 Nov 2018 10:55:40 +0000 (-0800) Subject: iris: add an extra BT assert from Chris Wilson X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69e97670bcaa7efe801429251a678813f096f5ff;p=mesa.git iris: add an extra BT assert from Chris Wilson --- 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)