Commit 8d548b6c by Nicolas Capens Committed by Nicolas Capens

Allow four texture coordinates

The SPIR-V spec states: "Coordinate must be a scalar or vector of floating-point type. It contains (u[, v] … [, array layer]) as needed by the definition of Sampled Image. It may be a vector larger than needed, but all unused components will appear after all used components." Bug b/129523279 Tests: dEQP-VK.glsl.texture_functions.texture.* Change-Id: I951f679b7794fef5fbbe504c753db052c5cf124b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31694 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com>
parent 2f3d8f52
......@@ -91,7 +91,7 @@ SpirvShader::ImageSampler *SpirvShader::emitSamplerFunction(ImageInstruction ins
SamplerCore s(constants, samplerState);
SIMD::Float uvw[3];
SIMD::Float uvw[4];
SIMD::Float q;
SIMD::Float lodOrBias; // Explicit level-of-detail, or bias added to the implicit level-of-detail (depending on samplerMethod).
Vector4f dsx;
......
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