From: "Lankhorst, Maarten" <maarten.lankhorst@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"Kulkarni, Vandita" <vandita.kulkarni@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_available_modes_crc: Enable test for ARGB888/ABGR8888
Date: Thu, 21 Jun 2018 18:24:26 +0000 [thread overview]
Message-ID: <1529605464.11846.3.camel@intel.com> (raw)
In-Reply-To: <1529587920-23489-1-git-send-email-vandita.kulkarni@intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 2412 bytes --]
Hey,
tor 2018-06-21 klockan 19:02 +0530 skrev Vandita Kulkarni:
> icl onwards hw supports bypass for 0xff and 0x00 per-pixel alpha,
> fixing the crc mismatch problem.
> Hence enabling this test for ARGB8888/ABGR8888 format planes.
>
> Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
> ---
> tests/kms_available_modes_crc.c | 26 +++++++++++++-------------
> 1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/tests/kms_available_modes_crc.c
> b/tests/kms_available_modes_crc.c
> index b70ef5d..2c6f707 100644
> --- a/tests/kms_available_modes_crc.c
> +++ b/tests/kms_available_modes_crc.c
> @@ -143,7 +143,7 @@ static const struct {
> * and getting crc is skipped.
> */
> { DRM_FORMAT_ARGB8888, 0, SKIP4, 0xffffffff},
> - { DRM_FORMAT_ABGR8888, 0, SKIP4, 0x00ffffff},
> + { DRM_FORMAT_ABGR8888, 0, SKIP4, 0xffffffff},
>
> { DRM_FORMAT_XRGB2101010, 0, BYTES_PP_4, 0xffffffff},
> { DRM_FORMAT_XBGR2101010, 0, BYTES_PP_4, 0xffffffff},
> @@ -223,21 +223,21 @@ static bool fill_in_fb(data_t *data,
> igt_output_t *output, igt_plane_t *plane,
> writesize = data->size+data->size/2;
> break;
> case SKIP4:
> - if (fillers[i].fourcc == DRM_FORMAT_ARGB8888 &&
> - plane->type == DRM_PLANE_TYPE_CURSOR) {
> + ptemp_32_buf = (unsigned int *)data->buf;
> + for (c = 0; c < data->size/4; c++)
> + ptemp_32_buf[c] = fillers[i].value;
> + writesize = data->size;
> /*
> - * special for cursor plane where blending works
> correctly.
> + * HW WA to fix per-pixel alpha 0x00 and 0xff
> + * on non cursor planes is icl onwards only.
> */
> - ptemp_32_buf = (unsigned int*)data->buf;
> - for (c = 0; c < data->size/4; c++)
> - ptemp_32_buf[c] = fillers[i].value;
> - writesize = data->size;
> - break;
> + if ((intel_gen(intel_get_drm_devid(data->gfx_fd)) <
> 11) &&
> + plane->type != DRM_PLANE_TYPE_CURSOR) {
> + igt_info("Format %s CRC comparison skipped
> by design.\n",
> + (char *)&fillers[i].fourcc);
> + return false;
> }
> - igt_info("Format %s CRC comparison skipped by
> design.\n",
> - (char*)&fillers[i].fourcc);
> -
> - return false;
> + break;
> default:
> igt_info("Unsupported mode for test %s\n",
> (char*)&fillers[i].fourcc);
Could we only blacklist gen9 and gen10? Earlier platforms should handle
alpha correctly.
~Maarten
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3282 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-06-21 18:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 13:32 [igt-dev] [PATCH i-g-t] tests/kms_available_modes_crc: Enable test for ARGB888/ABGR8888 Vandita Kulkarni
2018-06-21 14:22 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-06-21 18:24 ` Lankhorst, Maarten [this message]
2018-06-22 7:46 ` [igt-dev] [PATCH i-g-t] " Kulkarni, Vandita
2018-06-21 19:27 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
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=1529605464.11846.3.camel@intel.com \
--to=maarten.lankhorst@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=vandita.kulkarni@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.