All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [CI 1/3] lib/igt_fb: Switch to using is_ccs_modifier() wrapper
@ 2019-03-20 21:15 Dhinakaran Pandiyan
  2019-03-20 21:15 ` [igt-dev] [CI 2/3] tests/kms_ccs: Refactor code to add CCS modifiers Dhinakaran Pandiyan
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dhinakaran Pandiyan @ 2019-03-20 21:15 UTC (permalink / raw)
  To: igt-dev

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-21  5:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-20 21:15 [igt-dev] [CI 1/3] lib/igt_fb: Switch to using is_ccs_modifier() wrapper Dhinakaran Pandiyan
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

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.