Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Fix botched conversion...
details: https://anonhg.NetBSD.org/src/rev/3d749b45daba
branches: trunk
changeset: 330978:3d749b45daba
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 26 06:37:53 2014 +0000
description:
Fix botched conversion from ALIGN to round_up (not DIV_ROUND_UP!).
diffstat:
sys/external/bsd/drm2/dist/drm/radeon/radeon_fb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (22 lines):
diff -r ae1db30bb99c -r 3d749b45daba sys/external/bsd/drm2/dist/drm/radeon/radeon_fb.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_fb.c Sat Jul 26 06:34:12 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_fb.c Sat Jul 26 06:37:53 2014 +0000
@@ -128,14 +128,14 @@
fb_tiled) * ((bpp + 1) / 8);
if (rdev->family >= CHIP_R600)
-#ifdef __NetBSD__
- height = DIV_ROUND_UP(mode_cmd->height, 8);
+#ifdef __NetBSD__ /* XXX ALIGN means something else. */
+ height = round_up(mode_cmd->height, 8);
#else
height = ALIGN(mode_cmd->height, 8);
#endif
size = mode_cmd->pitches[0] * height;
-#ifdef __NetBSD__
- aligned_size = DIV_ROUND_UP (size, PAGE_SIZE);
+#ifdef __NetBSD__ /* XXX ALIGN means something else. */
+ aligned_size = round_up(size, PAGE_SIZE);
#else
aligned_size = ALIGN(size, PAGE_SIZE);
#endif
Home |
Main Index |
Thread Index |
Old Index