[PATCH i-g-t v2 2/2] tests/kms_async_flips: Use tiling modifiers
Santhosh Reddy Guddati
santhosh.reddy.guddati at intel.com
Wed Apr 16 15:03:48 UTC 2025
As async with linear modifiers is not a practical and common use case,
override the default modifier with tiled for all the async flip subtests
V2:
move handling to default_modifier (Karthik)
Signed-off-by: Santhosh Reddy Guddati <santhosh.reddy.guddati at intel.com>
---
tests/kms_async_flips.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index a3defe604..51afae8e9 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -194,6 +194,9 @@ static void wait_flip_event(data_t *data)
static uint64_t default_modifier(data_t *data)
{
if (igt_display_has_format_mod(&data->display, DRM_FORMAT_XRGB8888,
+ I915_FORMAT_MOD_4_TILED))
+ return I915_FORMAT_MOD_4_TILED;
+ else if (igt_display_has_format_mod(&data->display, DRM_FORMAT_XRGB8888,
I915_FORMAT_MOD_X_TILED))
return I915_FORMAT_MOD_X_TILED;
else
--
2.34.1
More information about the igt-dev
mailing list