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:
parent
31dcb39615
commit
b2b907f052
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue