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ä <ville.syrjala@linux.intel.com>
Signed-off-by: Dhinakaran Pandiyan's avatarDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
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)) {
setup_linear_mapping(&blit->base);
} 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