kms_flip: Exercise flip-vs-render

For machine with split BCS/RCS rings, we also need to test whether we
correctly wait upon outstanding render work before flipping and changing
modes. This should also serve to exercise the ring selection code for
flips.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2013-08-29 15:11:47 +01:00
parent 59f134450d
commit d0ed912107
4 changed files with 103 additions and 32 deletions
+6
View File
@@ -25,6 +25,9 @@
*
*/
#ifndef DRMTEST_H
#define DRMTEST_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -269,6 +272,7 @@ struct kmstest_fb {
int height;
int depth;
unsigned stride;
unsigned tiling;
unsigned size;
cairo_t *cairo_ctx;
};
@@ -326,3 +330,5 @@ int igt_enable_prefault(void);
/* suspend and auto-resume system */
void igt_system_suspend_autoresume(void);
#endif /* DRMTEST_H */