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>
This commit is contained in:
Paulo Zanoni 2015-06-25 10:47:09 -03:00
parent 7a4ded7b87
commit 053f33ad1c

View File

@ -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);
}