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/+/33051
Reviewed-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
diff --git a/src/Pipeline/SpirvShader.hpp b/src/Pipeline/SpirvShader.hpp
index 23f7723..fb78278 100644
--- a/src/Pipeline/SpirvShader.hpp
+++ b/src/Pipeline/SpirvShader.hpp
@@ -74,7 +74,7 @@
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)
{