Commit 6ee16a14 by Nicolas Capens

Use the given YV12 texture stride instead of computing it from width.

Bug 25690690 Change-Id: If25a8868effb1e55908c4041555e553b52ee789a Reviewed-on: https://swiftshader-review.googlesource.com/4292Reviewed-by: 's avatarKeun Soo Yim <yim@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 6f42209f
...@@ -224,7 +224,7 @@ namespace sw ...@@ -224,7 +224,7 @@ namespace sw
internalTextureFormat == FORMAT_YV12_BT709 || internalTextureFormat == FORMAT_YV12_BT709 ||
internalTextureFormat == FORMAT_YV12_JFIF) internalTextureFormat == FORMAT_YV12_JFIF)
{ {
unsigned int YStride = align(width, 16); unsigned int YStride = pitchP;
unsigned int YSize = YStride * height; unsigned int YSize = YStride * height;
unsigned int CStride = align(YStride / 2, 16); unsigned int CStride = align(YStride / 2, 16);
unsigned int CSize = CStride * height / 2; unsigned int CSize = CStride * height / 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment