mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-21 14:38:36 +02:00
iris: add an extra BT assert from Chris Wilson
This commit is contained in:
parent
4312784674
commit
69e97670bc
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue