iris: Fix iris_rebind_buffer() for VBOs with non-zero offsets.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Sep 2019 03:37:39 +0000 (20:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Sep 2019 19:41:03 +0000 (12:41 -0700)
commit309924c3c927b6f167d9306ecd7270076c7dc3ea
treef9f9f5aeb0e8431ea0b863001620a4bc7fec4997
parentfa0dcaaae02fdd024adef8c1ee4c04153846fc9b
iris: Fix iris_rebind_buffer() for VBOs with non-zero offsets.

We can't just check for the BO base address, we need to check for the
full address including any offset we may have applied.  When updating
the address, we need to include the offset again.

Fixes: 5ad0c88dbe3 ("iris: Replace buffer backing storage and rebind to update addresses.")
src/gallium/drivers/iris/iris_state.c