i965: Avoid division by zero.
authorArdinartsev Nikita <ardinar23@gmail.com>
Thu, 23 Jun 2016 01:28:11 +0000 (18:28 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 23 Jun 2016 17:08:58 +0000 (10:08 -0700)
commit01c89ccc5d1529aa1efbae80c8ef641a59abbd93
treef505c89965c48559192927df2ca6beb20ddc5c74
parenta16d274032cc1ee264b14de39be1bbb3f923bfb0
i965: Avoid division by zero.

Fixes regression introduced by af5ca43f2676bff7499f93277f908b681cb821d0

Cc: "12.0 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95419
src/mesa/drivers/dri/i965/gen7_urb.c