Skip to content

gallium/hud: initialize query

Juan A. Suárez requested to merge jasuarez/mesa:review/fix-hud-32bits into main

Most of the drivers don't set up the maximum value in the query info. So when later hud_pane_set_max_value() is invoked, we are using a rather "random" number.

Turns out that in some 32bit cases, this random number is big enough that leftmost_digit is 0 because DIV_ROUND_UP() overflows, aborting with an assertion.

Fixes: c91cf7d7 ("gallium: implement a heads-up display module")

Merge request reports