Skip to content
Snippets Groups Projects
Commit 10541d1f authored by Juan A. Suárez's avatar Juan A. Suárez Committed by Marge Bot
Browse files

gallium/hud: initialize query


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")
Reviewed-By: default avatarMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Signed-off-by: default avatarJuan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <mesa/mesa!12181>
parent ad83c06a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment