diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-06-01 21:15:45 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-06-01 21:15:45 +0300 |
commit | a0433ca1dddb83968a0f91753509526bb0240b5a (patch) | |
tree | 8f80b8c8d78736f9a2436240b0babb509e894955 /tests/kms_cursor_crc.c | |
parent | 9fc445dabf788516d9f6d4956a05277bda1e7f04 (diff) |
tests/kms_cursor_crc: Test non-square cursors on IVB+
IVB+ have the cursor "FBC" feature, meaning they support a
somewhat limited form of non-square cursors. Let's test that.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_cursor_crc.c')
-rw-r--r-- | tests/kms_cursor_crc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 206f8526..0940752b 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -416,7 +416,13 @@ static bool has_nonsquare_cursors(uint32_t devid) * Test non-square cursors a bit on the platforms * that support such things. */ - return devid == PCI_CHIP_845_G || devid == PCI_CHIP_I865_G; + if (devid == PCI_CHIP_845_G || devid == PCI_CHIP_I865_G) + return true; + + if (IS_VALLEYVIEW(devid) || IS_CHERRYVIEW(devid)) + return false; + + return intel_gen(devid) >= 7; } static void test_cursor_size(data_t *data) |