Re: [Mesa-dev] [PATCH] i965: Fix register write checks.

2014-10-09 Thread Anuj Phogat
On Wed, Oct 8, 2014 at 1:00 AM, Kenneth Graunke wrote: > 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

[Mesa-dev] [PATCH] i965: Fix register write checks.

2014-10-08 Thread Kenneth Graunke
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