Make sure we reject async flips if we don't support
async flips.
Signed-off-by: Mario Kleiner <[email protected]>
---
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
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx