summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorAndy Furniss <adf.lists@gmail.com>2016-09-13 13:52:31 -0400
committerLeo Liu <leo.liu@amd.com>2016-09-13 13:58:40 -0400
commit304f70536a73f4b63360632428241c7488c99610 (patch)
tree3ea52d5fa22899a12353b7f850b0da9d629bafd1 /src/gallium/auxiliary
parent6ac469a6c33d7b5b6a1e0abcb4761e9ca05fa449 (diff)
downloadexternal_mesa3d-304f70536a73f4b63360632428241c7488c99610.zip
external_mesa3d-304f70536a73f4b63360632428241c7488c99610.tar.gz
external_mesa3d-304f70536a73f4b63360632428241c7488c99610.tar.bz2
vl/util: Fix YV12/I420 convert to NV12 U/V reversal
Fix VAAPI YV12/I420 convert to NV12 U/V reversal. Input order is YVU when this is called. Signed-off-by: Andy Furniss <adf.lists@gmail.com> Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_video.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h
index 7e743de..2c02156 100644
--- a/src/gallium/auxiliary/util/u_video.h
+++ b/src/gallium/auxiliary/util/u_video.h
@@ -148,7 +148,7 @@ u_copy_yv12_img_to_nv12_surf(ubyte *const *src,
} else if (field == 1) {
const ubyte *src_1 = src[field];
const ubyte *src_2 = src[field+1];
- bool odd = false;
+ bool odd = true;
for (unsigned i = 0; i < height ; i++) {
for (unsigned j = 0; j < width*2 ; j++) {
if (odd == false) {