summaryrefslogtreecommitdiff
path: root/lib/igt_fb.c
diff options
context:
space:
mode:
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>2018-10-26 15:03:05 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-11-02 20:29:43 +0200
commit5421c73a7db3cfaa85ab24325fe6e898cbb27fb3 (patch)
tree63b56ca0e6753dd6153c21ae1c70f53a00179a88 /lib/igt_fb.c
parent7983e19ed62ec8db1884f55e07e458a62cc51e37 (diff)
lib/igt_fb: Fix unused variable buf.
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> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_fb.c')
-rw-r--r--lib/igt_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 5dca1cfa..fe0c99b9 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -1530,8 +1530,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++) {