Skip to contentSkip to conversation

tests/kms_cursor_crc: Test non-square cursors on IVB+

PATCH New [email protected] 1 participant 1 message Jun 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_cursor_crc: Test non-square cursors on IVB+

From: Ville Syrjälä <[email protected]>

IVB+ have the cursor "FBC" feature, meaning they support a somewhat limited form of non-square cursors. Let's test that.

---
 tests/kms_cursor_crc.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
tests/kms_cursor_crc.c +7 -1
index 206f85268c9e..0940752b8c40 100644
@@ -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)
Signature · 6 lines
2.10.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx