From: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [CI 1/3] lib/igt_fb: Switch to using is_ccs_modifier() wrapper
Date: Wed, 20 Mar 2019 14:15:58 -0700 [thread overview]
Message-ID: <20190320211600.4792-1-dhinakaran.pandiyan@intel.com> (raw)
A linear mapping setup for Y, Yf tiled and CCS modifiers. Instead of
checking against each CCS modifier, let's make use of this wrapper.
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
lib/igt_fb.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 6a9a9341..bad1d1fb 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -2519,8 +2519,7 @@ static void create_cairo_surface__convert(int fd, struct igt_fb *fb)
if (fb->modifier == LOCAL_I915_FORMAT_MOD_Y_TILED ||
fb->modifier == LOCAL_I915_FORMAT_MOD_Yf_TILED ||
- fb->modifier == LOCAL_I915_FORMAT_MOD_Y_TILED_CCS ||
- fb->modifier == LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS) {
+ is_ccs_modifier(fb->modifier)) {
setup_linear_mapping(&blit->base);
} else {
blit->base.linear.fb = *fb;
--
2.17.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2019-03-20 21:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-20 21:15 Dhinakaran Pandiyan [this message]
2019-03-20 21:15 ` [igt-dev] [CI 2/3] tests/kms_ccs: Refactor code to add CCS modifiers Dhinakaran Pandiyan
2019-03-20 21:16 ` [igt-dev] [CI 3/3] tests/kms_ccs: Test Yf CCS modifier too Dhinakaran Pandiyan
2019-03-20 22:09 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [CI,1/3] lib/igt_fb: Switch to using is_ccs_modifier() wrapper Patchwork
2019-03-21 5:19 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20190320211600.4792-1-dhinakaran.pandiyan@intel.com \
--to=dhinakaran.pandiyan@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