i965: Fix register write checks.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 30 Sep 2014 00:00:51 +0000 (17:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 9 Oct 2014 22:04:39 +0000 (00:04 +0200)
commit94841b6d5dac6dcb445a30f083ec6e9858ad2f7d
treead6c1e0274a71aa2afa6211ae8702cf5efae811a
parent7e67ea994c34a6ebbaeb6a097036702c7a96496f
i965: Fix register write checks.

When mapping the buffer a second time, we need to use the new pointer,
not the one from the previous mapping.  Otherwise, we will most likely
crash.

Apparently, we've just been getting lucky and getting the same
bo->virtual pointer in both cases.  libdrm probably has a hand in that.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/intel_extensions.c