[igt-dev] [CI 1/3] lib/igt_fb: Switch to using is_ccs_modifier() wrapper
Dhinakaran Pandiyan
dhinakaran.pandiyan at intel.com
Wed Mar 20 21:15:58 UTC 2019
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 at linux.intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala at 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
More information about the igt-dev
mailing list