lib/display: Wait for a vblank after SetPlane()

Let's be testing friendly and gently wait for the next vblank before
returning from commit() when needed.

After igt_display_commit() one can safely look at the CRC.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2014-02-06 21:18:28 +00:00
parent da0f1cf570
commit fb146aa782
2 changed files with 11 additions and 2 deletions
+3 -2
View File
@@ -136,8 +136,9 @@ typedef struct {
struct igt_pipe {
igt_display_t *display;
enum pipe pipe;
unsigned int need_set_crtc : 1;
unsigned int need_set_cursor : 1;
unsigned int need_set_crtc : 1;
unsigned int need_set_cursor : 1;
unsigned int need_wait_for_vblank : 1;
#define IGT_MAX_PLANES 4
int n_planes;
igt_plane_t planes[IGT_MAX_PLANES];