i965/blit: Remember to include miptree buffer offset in relocs
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 31 Jul 2017 09:56:15 +0000 (10:56 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Aug 2017 01:06:35 +0000 (18:06 -0700)
commitfb63c43fd1b7adb5cb4f34e7616e7d564ca178e5
treee9501d4b4a6ebd4b3736da0e65abb54fedac5d9b
parent858f5540786e12cbd56ede9396dc4ce1112fe9db
i965/blit: Remember to include miptree buffer offset in relocs

Remember to add the offset to the start of the buffer in the relocation
or else we write 0xff into random bytes elsewhere.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/intel_blit.c
src/mesa/drivers/dri/i965/intel_pixel_bitmap.c