[Intel-gfx] [PATCH] uxa/present: Handle sync_flip flag in intel_present_check_flip()
Mario Kleiner
mario.kleiner.de at gmail.com
Tue Dec 2 11:08:48 PST 2014
Make sure we reject async flips if we don't support
async flips.
Signed-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
---
src/uxa/intel_present.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/uxa/intel_present.c b/src/uxa/intel_present.c
index d20043f..d2aa9ee 100644
--- a/src/uxa/intel_present.c
+++ b/src/uxa/intel_present.c
@@ -58,6 +58,8 @@ struct intel_present_vblank_event {
uint64_t event_id;
};
+static Bool intel_present_has_async_flip(ScreenPtr screen);
+
static uint32_t pipe_select(int pipe)
{
if (pipe > 1)
@@ -266,6 +268,9 @@ intel_present_check_flip(RRCrtcPtr crtc,
if (!bo)
return FALSE;
+ if (!sync_flip && !intel_present_has_async_flip(screen))
+ return FALSE;
+
return TRUE;
}
--
1.9.1
More information about the Intel-gfx
mailing list