[Intel-gfx] [PATCH IGT 02/11] tests/kms_frontbuffer_tracking: Fix multidraw subtest
Jim Bride
jim.bride at linux.intel.com
Tue Jul 11 22:48:27 UTC 2017
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 at intel.com>
Signed-off-by: Jim Bride <jim.bride at linux.intel.com>
---
tests/kms_frontbuffer_tracking.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index c24e4a8..6f8fd20 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);
--
2.7.4
More information about the Intel-gfx
mailing list