summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-06-25 10:47:09 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-06-25 14:53:49 -0300
commit053f33ad1c3e8604b2c33a6ca87539a2ec684742 (patch)
tree788e2dcd7dac680338380de04e46492165be61f1 /tests
parent7a4ded7b87956b9bcfb0d33ed2368633ec2dc239 (diff)
kms_frontbuffer_tracking: use CPU mmaps for fill_fb_region()
Because the GTT mmaps "permanently" disable PSR and this can mess some of our assertions. So let's just use the CPU domain to keep the implementation simple. With this, some PSR tests that were failing will now start passing. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_frontbuffer_tracking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 836367dd..9fe95bb9 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -859,7 +859,7 @@ static void draw_rect_igt_fb(struct draw_pattern_info *pattern,
static void fill_fb_region(struct fb_region *region, uint32_t color)
{
- igt_draw_rect_fb(drm.fd, NULL, NULL, region->fb, IGT_DRAW_MMAP_GTT,
+ igt_draw_rect_fb(drm.fd, NULL, NULL, region->fb, IGT_DRAW_MMAP_CPU,
region->x, region->y, region->w, region->h,
color);
}