Commit 0133d0f5 by Nicolas Capens

Fix the vector element extraction type for Short4.

Change-Id: Ic8785bd56ac7303b0502f0303f9270a6999a1df9 Reviewed-on: https://swiftshader-review.googlesource.com/8452Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent bf22bbf2
...@@ -3324,7 +3324,7 @@ namespace sw ...@@ -3324,7 +3324,7 @@ namespace sw
RValue<Short> Extract(RValue<Short4> val, int i) RValue<Short> Extract(RValue<Short4> val, int i)
{ {
return RValue<Short>(Nucleus::createExtractElement(val.value, Int::getType(), i)); return RValue<Short>(Nucleus::createExtractElement(val.value, Short::getType(), i));
} }
RValue<Short4> CmpGT(RValue<Short4> x, RValue<Short4> y) RValue<Short4> CmpGT(RValue<Short4> x, RValue<Short4> y)
......
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