diff options
author | Jim Bride <jim.bride@linux.intel.com> | 2017-07-11 15:48:27 -0700 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2017-07-12 16:26:10 -0300 |
commit | e51518877eaf39089473396583d1aa2beba4bea8 (patch) | |
tree | 94856121c19081778fcfc6697121a7e043db6d9e /tests/kms_frontbuffer_tracking.c | |
parent | 6e572cfc276874c69c37728d01be64cae268592c (diff) |
tests/kms_frontbuffer_tracking: Fix multidraw subtest
The multidraw subtest was not taking whether or not the GEM buffer had
ever been in write-combining mode when checking for PSR state, so fix
that.
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Jim Bride <jim.bride@linux.intel.com>
Diffstat (limited to 'tests/kms_frontbuffer_tracking.c')
-rw-r--r-- | tests/kms_frontbuffer_tracking.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index c24e4a81..6f8fd203 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -2140,7 +2140,8 @@ static void multidraw_subtest(const struct test_mode *t) assertions = used_method != IGT_DRAW_MMAP_GTT ? ASSERT_LAST_ACTION_CHANGED : ASSERT_NO_ACTION_CHANGE; - if (op_disables_psr(t, used_method)) + if (op_disables_psr(t, used_method) && + !wc_used) assertions |= ASSERT_PSR_DISABLED; do_assertions(assertions); |