diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-04-20 21:10:58 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-04-21 13:08:23 +0300 |
commit | 27372851c8cdec29b198bc9ec8e21f83cd1ec083 (patch) | |
tree | 07033a5d66258c62a769ef78f7533eb6ee20cff3 | |
parent | f650aa2dd640a4a8941bae90fbd85c83da5fbb1c (diff) |
lib: Pass format instead of bpp to create_bo_for_fb()
create_bo_for_fb() expects the drm format as a parameter since
commit 8a1a38661f56 ("lib: Add igt_create_bo_with_dimensions")
but not all callers were updated. Fix that up.
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: 8a1a38661f56 ("lib: Add igt_create_bo_with_dimensions")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93328
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
-rw-r--r-- | lib/igt_fb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c index c4f87898..3e53d3b8 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -1006,7 +1006,7 @@ static void create_cairo_surface__blit(int fd, struct igt_fb *fb) struct fb_blit_upload *blit; cairo_format_t cairo_format; unsigned int obj_tiling = fb_mod_to_obj_tiling(fb->tiling); - int bpp, ret; + int ret; blit = malloc(sizeof(*blit)); igt_assert(blit); @@ -1016,8 +1016,7 @@ static void create_cairo_surface__blit(int fd, struct igt_fb *fb) * cairo). This linear bo will be then blitted to its final * destination, tiling it at the same time. */ - bpp = igt_drm_format_to_bpp(fb->drm_format); - ret = create_bo_for_fb(fd, fb->width, fb->height, bpp, + ret = create_bo_for_fb(fd, fb->width, fb->height, fb->drm_format, LOCAL_DRM_FORMAT_MOD_NONE, 0, 0, &blit->linear.handle, &blit->linear.size, |