summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/dc.c
diff options
context:
space:
mode:
authorI-Gene Leong <ileong@nvidia.com>2011-11-17 18:49:15 -0800
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-06-14 07:40:10 -0700
commit98953006c8ee5b30bc80774ca1b14d80273d3fb8 (patch)
tree4c1873401a824c9f761c619a27977b054d0b129e /drivers/video/tegra/dc/dc.c
parent55a62c544614c7fde350ac1f4a080b267a211456 (diff)
video: tegra: dc: fix bug causing drawing before flipping
The tegra_dc_trigger_windows function was improperly using the WIN_x_UPDATE bits to determine when a flip has occurred instead of the WIN_x_ACT_REQ bits. Without this change, it's possible for the postflip syncpoint for a buffer to get incremented before it actually flips. Still need to figure out why that's even possible... Fixes bug 902955 Change-Id: I67ba093a0114646977cc8cb95a040ec4178cebfc Reviewed-on: http://git-master/r/65389 Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Nate Huang <nhuang@nvidia.com> Tested-by: Nate Huang <nhuang@nvidia.com> Reviewed-on: http://git-master/r/98024 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/dc.c')
-rw-r--r--drivers/video/tegra/dc/dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 095e44a..7c5cacc 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -2009,7 +2009,7 @@ static void tegra_dc_trigger_windows(struct tegra_dc *dc)
dc->windows[i].dirty = 0;
completed = 1;
#else
- if (!(val & (WIN_A_UPDATE << i))) {
+ if (!(val & (WIN_A_ACT_REQ << i))) {
dc->windows[i].dirty = 0;
completed = 1;
} else {