util/u_format: Assert that format block size is at least 1 byte.
authorVinson Lee <vlee@freedesktop.org>
Sat, 28 Sep 2013 05:42:58 +0000 (22:42 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 1 Oct 2013 04:53:04 +0000 (21:53 -0700)
commitac82495d6d562091d819b0109adf43fd89e49537
treef969aced9fbdbb483dbc6f97812eb164cb8bdfaf
parent505a6de7fc5e281d0faf7950cc97fbe88cd9bbf4
util/u_format: Assert that format block size is at least 1 byte.

The block size for all formats is currently at least 1 byte. Add an
assertion for this.

This should silence several Coverity "Division or modulo by zero"
defects.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_format.h