public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t v2] lib/igt_fb: Fix unused variable buf.
@ 2018-10-26 12:03 Stanislav Lisovskiy
  2018-10-26 13:21 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stanislav Lisovskiy @ 2018-10-26 12:03 UTC (permalink / raw)
  To: igt-dev; +Cc: stanislav.lisovskiy, ville.syrjala, martin.peres

Despite the comment temporary buf is not
used anywhere in convert_nv12_to_rgb24,
so it has to be either removed or used instead
of cvt->src.ptr.

v2: Put it in use instead of removing as other
functions seem to use it.

Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
---
 lib/igt_fb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 4700b152..5e775c44 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -1538,8 +1538,8 @@ static void convert_nv12_to_rgb24(struct fb_convert *cvt)
 	 * from there.
 	 */
 	igt_memcpy_from_wc(buf, cvt->src.ptr, cvt->src.fb->size);
-	y = cvt->src.ptr + cvt->src.fb->offsets[0];
-	uv = cvt->src.ptr + cvt->src.fb->offsets[1];
+	y = buf + cvt->src.fb->offsets[0];
+	uv = buf + cvt->src.fb->offsets[1];
 
 	for (i = 0; i < cvt->dst.fb->height / 2; i++) {
 		for (j = 0; j < cvt->dst.fb->width / 2; j++) {
-- 
2.17.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-02 18:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-26 12:03 [igt-dev] [PATCH i-g-t v2] lib/igt_fb: Fix unused variable buf Stanislav Lisovskiy
2018-10-26 13:21 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2018-10-26 14:41 ` Patchwork
2018-10-26 15:57 ` [igt-dev] [PATCH i-g-t v2] " Maarten Lankhorst
2018-11-02 18:31   ` Ville Syrjälä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox