Re: [Intel-gfx] drm_modes: signed integer overflow
From: Simon Ser
Date: Fri Oct 23 2020 - 12:02:18 EST
On Friday, October 23, 2020 5:27 PM, Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> wrote:
> These are two extreme cases:
Thanks!
> > I'm trying to get
> > a fix for my user-space 1, and I'm wondering if int32_t is enough
> > after dividing by mode->htotal.
> > CC Pekka, just FYI (I think Weston has similar code).
>
> What's with those 1000000LL constants? Are you storing
> clock in Hz units?
We're storing the vertical refresh rate in mHz (milli-Hertz).