Pipeline: Fix return type of SIMD::Pointer::limit()
`limit()` is the same for all lanes, so use `rr::Int`, not `SIMD::Int`.
This was using an unqualified scope, so likely just a screwup when I first wrote this.
Bug: None. A simple fix.
Change-Id: I0df67fb88f9973dd522a5555888173ba1f5ae594
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48689
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
diff --git a/src/Pipeline/ShaderCore.cpp b/src/Pipeline/ShaderCore.cpp
index b5e47d5..f0d6ee4 100644
--- a/src/Pipeline/ShaderCore.cpp
+++ b/src/Pipeline/ShaderCore.cpp
@@ -1083,7 +1083,7 @@
return true;
}
-Int Pointer::limit() const
+rr::Int Pointer::limit() const
{
return dynamicLimit + staticLimit;
}
diff --git a/src/Pipeline/ShaderCore.hpp b/src/Pipeline/ShaderCore.hpp
index 260faa3..b749ada 100644
--- a/src/Pipeline/ShaderCore.hpp
+++ b/src/Pipeline/ShaderCore.hpp
@@ -121,7 +121,7 @@
bool isStaticallyInBounds(unsigned int accessSize, OutOfBoundsBehavior robustness) const;
- Int limit() const;
+ rr::Int limit() const;
// Returns true if all offsets are sequential
// (N+0*step, N+1*step, N+2*step, N+3*step)