summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/openchrome
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2018-02-03 15:08:02 -0800
committerKevin Brace <kevinbrace@gmx.com>2018-02-03 15:08:02 -0800
commit629042904c2e04b1b8178f6f968fe8580ff65ada (patch)
treec97d01930abc47e456e6c82d94ff18ec5a2138ea /drivers/gpu/drm/openchrome
parentee55444ee94a21b019c2e6610f4e5e3b3ddab9db (diff)
drm/openchrome: Cosmetic changes to display FIFO depth formula
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'drivers/gpu/drm/openchrome')
-rw-r--r--drivers/gpu/drm/openchrome/via_disp_reg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/openchrome/via_disp_reg.h b/drivers/gpu/drm/openchrome/via_disp_reg.h
index a3b2cf8ddcbe..e2bd895bb495 100644
--- a/drivers/gpu/drm/openchrome/via_disp_reg.h
+++ b/drivers/gpu/drm/openchrome/via_disp_reg.h
@@ -28,8 +28,8 @@
/********************************************************/
/* Definition IGA Design Method of FIFO Registers */
/********************************************************/
-#define IGA1_FIFO_DEPTH_SELECT_FORMULA(x) ((x / 2) - 1)
-#define IGA2_FIFO_DEPTH_SELECT_FORMULA(x) ((x / 2) / 4) - 1
+#define IGA1_FIFO_DEPTH_SELECT_FORMULA(x) ((x >> 1) - 1)
+#define IGA2_FIFO_DEPTH_SELECT_FORMULA(x) ((x >> 3) - 1)
/* Define Display OFFSET */
/* VT3314 chipset */