Commit 9ada309a by Nicolas Capens

Fix floating-point sampling of YUV formats.

Bug b/38268007 Change-Id: I5a75b7ea475848739ca5f3717e2b42c89088dafb Reviewed-on: https://swiftshader-review.googlesource.com/9828Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 1fb04acc
......@@ -495,6 +495,9 @@ namespace sw
case FORMAT_V16U16:
case FORMAT_A16W16V16U16:
case FORMAT_Q16W16V16U16:
case FORMAT_YV12_BT601:
case FORMAT_YV12_BT709:
case FORMAT_YV12_JFIF:
if(componentCount < 2) c.y = Float4(1.0f);
if(componentCount < 3) c.z = Float4(1.0f);
if(componentCount < 4) c.w = Float4(1.0f);
......
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