util/u_format: Drop assert that has valid/well-defined behavior

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16286>
This commit is contained in:
Sil Vilerino 2022-05-02 09:27:09 -07:00 committed by Marge Bot
parent 31dcb39615
commit b2b907f052
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ util_format_get_blocksize(enum pipe_format format)
uint bytes = bits / 8;
assert(bits % 8 == 0);
assert(bytes > 0);
/* Some formats have bits set to 0, let's default to 1.*/
if (bytes == 0) {
bytes = 1;
}