Commit 867ee1d6 by Ben Clayton

SpirvShader: Fix SIMD::Pointer initialization of hasDynamicOffsets

This should have been true for the constructor that takes a dynamic offset. Surprising that this hadn't caused any tests to fail. Bug: b/131224163 Change-Id: I00fcfb99e265c7a378c40817ae8f84104e4a2a3d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/33051Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
parent fae67cea
......@@ -74,7 +74,7 @@ namespace sw
Pointer(rr::Pointer<Byte> base, rr::Int limit)
: base(base), limit(limit), dynamicOffsets(0), staticOffsets{}, hasDynamicOffsets(false) {}
Pointer(rr::Pointer<Byte> base, rr::Int limit, SIMD::Int offset)
: base(base), limit(limit), dynamicOffsets(offset), staticOffsets{}, hasDynamicOffsets(false) {}
: base(base), limit(limit), dynamicOffsets(offset), staticOffsets{}, hasDynamicOffsets(true) {}
inline Pointer& operator += (Int i)
{
......
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