Commit 041bd79b authored by Dhinakaran Pandiyan's avatar Dhinakaran Pandiyan

lib/igt_fb: Switch to using is_ccs_modifier() wrapper

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ä <>
Signed-off-by: Dhinakaran Pandiyan's avatarDhinakaran Pandiyan <>
Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <>
parent fedd92f4
......@@ -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)) {
} else {
blit->base.linear.fb = *fb;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment