summaryrefslogtreecommitdiff
path: root/tests/kms_frontbuffer_tracking.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2016-02-24 18:24:26 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2016-06-17 18:59:20 -0300
commitdc466efa976e2c2e0e9ff858e73c147acf6588ac (patch)
tree4ad764191a2266d0125116831ef1a40943d8b7fc /tests/kms_frontbuffer_tracking.c
parent001d665080c1be7d8fe97b557d7b6102175956b7 (diff)
kms_frontbuffer_tracking: prefer the BLT drawing method
A recent Kernel fix changed the way GTT and WC mmaps behave during frontbuffer drawing. This, added with the fact that GTT mmaps are special cases for PSR, suggests that maybe we should move to BLT drawing in places where we can, in order to simplify things a little bit. v2: New commit message. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests/kms_frontbuffer_tracking.c')
-rw-r--r--tests/kms_frontbuffer_tracking.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index c8609351..34c40a9e 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1128,7 +1128,7 @@ static void fill_fb_region(struct fb_region *region, enum color ecolor)
{
uint32_t color = pick_color(region->fb, ecolor);
- igt_draw_rect_fb(drm.fd, NULL, NULL, region->fb, IGT_DRAW_MMAP_CPU,
+ igt_draw_rect_fb(drm.fd, drm.bufmgr, NULL, region->fb, IGT_DRAW_BLT,
region->x, region->y, region->w, region->h,
color);
}
@@ -3563,7 +3563,7 @@ int main(int argc, char *argv[])
if (t.pipes != PIPE_SINGLE ||
t.screen != SCREEN_PRIM ||
t.plane != PLANE_PRI ||
- t.method != IGT_DRAW_MMAP_CPU)
+ t.method != IGT_DRAW_BLT)
continue;
igt_subtest_f("%s-%s-scaledprimary",
feature_str(t.feature),
@@ -3576,7 +3576,7 @@ int main(int argc, char *argv[])
t.screen != SCREEN_PRIM ||
t.plane != PLANE_PRI ||
t.fbs != FBS_INDIVIDUAL ||
- t.method != IGT_DRAW_MMAP_CPU)
+ t.method != IGT_DRAW_BLT)
continue;
igt_subtest_f("%s-modesetfrombusy", feature_str(t.feature))