Commit 32d80eee by Chris Forbes

Substitute integer 1 for missing 4th component of integer vertex attribute

Test: dEQP-VK.glsl.440.linkage.varying.component.vert_in.ivec2.as_int_int_unused Change-Id: I6e8da5863cfcee722dd4cf202810ddc505f76a65 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31890Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 9b843ea8
......@@ -486,7 +486,7 @@ namespace sw
if(stream.count < 1) v.x = Float4(0.0f);
if(stream.count < 2) v.y = Float4(0.0f);
if(stream.count < 3) v.z = Float4(0.0f);
if(stream.count < 4) v.w = isNativeFloatAttrib ? As<Float4>(Float4(1.0f)) : As<Float4>(Int4(0));
if(stream.count < 4) v.w = isNativeFloatAttrib ? As<Float4>(Float4(1.0f)) : As<Float4>(Int4(1));
return v;
}
......
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