Sinclair Yeh 7851496a32 drm/vmwgfx: Fix order of operation
mode->hdisplay * (var->bits_per_pixel + 7) gets evaluated before
the division, potentially making the pitch larger than it should
be.

Since the original intention is to do a div-round-up, just use
the macro instead.

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
2016-04-28 11:07:30 -07:00
..
2015-09-17 02:13:42 -07:00
2015-08-12 10:06:32 -07:00
2016-03-16 08:00:31 +01:00
2016-04-28 11:07:30 -07:00
2016-02-08 09:55:53 +01:00
2016-02-08 09:55:53 +01:00
2015-08-12 10:06:56 -07:00
2015-08-12 10:06:56 -07:00
2015-08-12 10:06:56 -07:00
2015-08-12 10:06:56 -07:00
2015-08-12 10:06:56 -07:00