* [PATCH i-g-t] lib: Pass format instead of bpp to create_bo_for_fb()
@ 2016-04-20 18:16 ville.syrjala
2016-04-21 6:56 ` Tomeu Vizoso
0 siblings, 1 reply; 3+ messages in thread
From: ville.syrjala @ 2016-04-20 18:16 UTC (permalink / raw)
To: intel-gfx; +Cc: Tomeu Vizoso
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
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>
---
lib/igt_fb.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index c4f87898e82e..3e53d3b8cd3d 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,
--
2.7.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH i-g-t] lib: Pass format instead of bpp to create_bo_for_fb()
2016-04-20 18:16 [PATCH i-g-t] lib: Pass format instead of bpp to create_bo_for_fb() ville.syrjala
@ 2016-04-21 6:56 ` Tomeu Vizoso
2016-04-21 10:10 ` Ville Syrjälä
0 siblings, 1 reply; 3+ messages in thread
From: Tomeu Vizoso @ 2016-04-21 6:56 UTC (permalink / raw)
To: ville.syrjala; +Cc: Intel Graphics Development
On 20 April 2016 at 20:16, <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> 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>
Sorry and thanks,
Tomeu
> ---
> lib/igt_fb.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index c4f87898e82e..3e53d3b8cd3d 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,
> --
> 2.7.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH i-g-t] lib: Pass format instead of bpp to create_bo_for_fb()
2016-04-21 6:56 ` Tomeu Vizoso
@ 2016-04-21 10:10 ` Ville Syrjälä
0 siblings, 0 replies; 3+ messages in thread
From: Ville Syrjälä @ 2016-04-21 10:10 UTC (permalink / raw)
To: Tomeu Vizoso; +Cc: Intel Graphics Development
On Thu, Apr 21, 2016 at 08:56:09AM +0200, Tomeu Vizoso wrote:
> On 20 April 2016 at 20:16, <ville.syrjala@linux.intel.com> wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > 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>
Thanks. Pushed.
>
> Sorry and thanks,
>
> Tomeu
>
> > ---
> > lib/igt_fb.c | 5 ++---
> > 1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> > index c4f87898e82e..3e53d3b8cd3d 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,
> > --
> > 2.7.4
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-21 10:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-20 18:16 [PATCH i-g-t] lib: Pass format instead of bpp to create_bo_for_fb() ville.syrjala
2016-04-21 6:56 ` Tomeu Vizoso
2016-04-21 10:10 ` Ville Syrjälä
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.