From: Imre Deak <imre.deak@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 06/10] tests/kms_ccs: Add support for testing multiple formats
Date: Mon, 30 Dec 2019 05:40:36 +0200 [thread overview]
Message-ID: <20191230034040.21943-7-imre.deak@intel.com> (raw)
In-Reply-To: <20191230034040.21943-1-imre.deak@intel.com>
Prepare for testing the media compression functionality with YUV
formats.
No functional change.
Cc: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
---
tests/kms_ccs.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index d5178824..32b69f3b 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -58,6 +58,7 @@ typedef struct {
enum test_flags flags;
igt_plane_t *plane;
igt_pipe_crc_t *pipe_crc;
+ uint32_t format;
uint64_t ccs_modifier;
} data_t;
@@ -70,6 +71,10 @@ static const struct {
{0.0, 1.0, 0.0}
};
+static const uint32_t formats[] = {
+ DRM_FORMAT_XRGB8888,
+};
+
static const uint64_t ccs_modifiers[] = {
LOCAL_I915_FORMAT_MOD_Y_TILED_CCS,
LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS,
@@ -134,7 +139,7 @@ static void generate_fb(data_t *data, struct igt_fb *fb,
if (data->flags & TEST_BAD_PIXEL_FORMAT)
format = DRM_FORMAT_RGB565;
else
- format = DRM_FORMAT_XRGB8888;
+ format = data->format;
igt_create_bo_for_fb(data->drm_fd, width, height, format, modifier, fb);
igt_assert(fb->gem_handle > 0);
@@ -206,12 +211,12 @@ static bool try_config(data_t *data, enum test_fb_flags fb_flags,
primary = igt_output_get_plane_type(data->output,
DRM_PLANE_TYPE_PRIMARY);
- if (!igt_plane_has_format_mod(primary, DRM_FORMAT_XRGB8888,
+ if (!igt_plane_has_format_mod(primary, data->format,
data->ccs_modifier))
return false;
if (data->plane && fb_flags & FB_COMPRESSED) {
- if (!igt_plane_has_format_mod(data->plane, DRM_FORMAT_XRGB8888,
+ if (!igt_plane_has_format_mod(data->plane, data->format,
data->ccs_modifier))
return false;
@@ -316,8 +321,13 @@ static int __test_output(data_t *data)
igt_output_set_pipe(data->output, data->pipe);
for (i = 0; i < ARRAY_SIZE(ccs_modifiers); i++) {
+ int j;
+
data->ccs_modifier = ccs_modifiers[i];
- valid_tests += test_ccs(data);
+ for (j = 0; j < ARRAY_SIZE(formats); j++) {
+ data->format = formats[j];
+ valid_tests += test_ccs(data);
+ }
}
igt_output_set_pipe(data->output, PIPE_NONE);
--
2.23.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-12-30 3:41 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-30 3:40 [igt-dev] [PATCH i-g-t 00/10] lib: Add support and coverage for MC YUV formats Imre Deak
2019-12-30 3:40 ` [igt-dev] [PATCH i-g-t 01/10] lib/igt_buf: Use compression type consistently Imre Deak
2019-12-30 12:00 ` Kahola, Mika
2019-12-30 3:40 ` [igt-dev] [PATCH i-g-t 02/10] lib/igt_buf: Extend igt_buf to include two CCS surfaces Imre Deak
2019-12-30 12:02 ` Kahola, Mika
2019-12-30 3:40 ` [igt-dev] [PATCH i-g-t 03/10] lib/igt_buf: Extend igt_buf to include two color surfaces Imre Deak
2019-12-30 12:06 ` Kahola, Mika
2019-12-30 12:58 ` Imre Deak
2019-12-30 17:58 ` [igt-dev] [PATCH i-g-t v2 " Imre Deak
2019-12-31 8:40 ` Kahola, Mika
2019-12-30 3:40 ` [igt-dev] [PATCH i-g-t 04/10] lib: Add engine copy support for YUV formats Imre Deak
2019-12-30 13:23 ` Kahola, Mika
2019-12-30 3:40 ` [igt-dev] [PATCH i-g-t 05/10] Revert "tests/kms_plane: Disable GEN12 media compression YUV tests" Imre Deak
2019-12-30 13:24 ` Kahola, Mika
2019-12-30 3:40 ` Imre Deak [this message]
2019-12-30 3:40 ` [igt-dev] [PATCH i-g-t 07/10] tests/kms_ccs: Add GEN12 CCS media compression format modifier Imre Deak
2019-12-30 3:40 ` [igt-dev] [PATCH i-g-t 08/10] tests/kms_ccs: Work around CRC mismatch when mixing SDR/HDR planes Imre Deak
2019-12-30 3:40 ` [igt-dev] [PATCH i-g-t 09/10] tests/kms_ccs: Test YUV formats too Imre Deak
2019-12-30 3:40 ` [igt-dev] [PATCH i-g-t 10/10] tests/kms_ccs: Add option to check the CCS planes Imre Deak
2019-12-30 12:47 ` Juha-Pekka Heikkila
2019-12-30 13:12 ` Imre Deak
2019-12-30 13:34 ` Juha-Pekka Heikkila
2019-12-30 17:58 ` [igt-dev] [PATCH i-g-t v2 " Imre Deak
2019-12-30 4:12 ` [igt-dev] ✗ Fi.CI.BAT: failure for lib: Add support and coverage for MC YUV formats Patchwork
2019-12-30 9:00 ` Imre Deak
2019-12-30 9:22 ` Vudum, Lakshminarayana
2019-12-30 9:18 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2019-12-30 12:50 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2019-12-30 13:23 ` Imre Deak
2019-12-30 15:53 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork
2019-12-30 19:02 ` [igt-dev] ✓ Fi.CI.BAT: success for lib: Add support and coverage for MC YUV formats (rev3) Patchwork
2019-12-31 8:45 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-12-31 12:49 ` Imre Deak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191230034040.21943-7-imre.deak@intel.com \
--to=imre.deak@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox