Commit 54b63031 by Chris Forbes

Avoid RValue<SIMD::Int>(int)

This doesn't behave as expected, and asserts inside LLVM. Test: dEQP-VK.binding_model.descriptorset_random.sets4.* Change-Id: I3a4d61a3dcac2c62d8e29982e0b7b2a82a22caa1 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31510Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
parent cd280441
......@@ -4976,7 +4976,13 @@ namespace sw
int dims = getType(coordinate.type).sizeInComponents - (isArrayed ? 1 : 0);
SIMD::Int u = coordinate.Int(0);
SIMD::Int v = (getType(coordinate.type).sizeInComponents > 1) ? coordinate.Int(1) : RValue<SIMD::Int>(0);
SIMD::Int v = SIMD::Int(0);
if (getType(coordinate.type).sizeInComponents > 1)
{
v = coordinate.Int(1);
}
if (dim == spv::DimSubpassData)
{
u += routine->windowSpacePosition[0];
......
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