Skip to content

util/format: nr_channels is always <= 4

Juan A. Suárez requested to merge jasuarez/mesa:review/static-fix-util into main

What does this MR do and why?

util/format: nr_channels is always <= 4

While the nr_channels is defined with 3 bits, which allows up to 7
channels, actually the number of channels is less or equal to 4.

This adds an assertion that helps static analyzers to avoid several
false positives related with this.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>

Merge request reports

Loading