Commit efca5651 by Ben Clayton

Device: Rename RoutineCacheT to RoutineCache

`RoutineCache` was not used, remove it. Rename `RoutineCacheT` to the now unused name `RoutineCache`. Bug: b/126126820 Change-Id: I656c1727446754b2063033806634678b14485b6f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43816Tested-by: 's avatarBen Clayton <bclayton@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent bc2af94f
...@@ -186,9 +186,9 @@ private: ...@@ -186,9 +186,9 @@ private:
const VkImageSubresourceLayers &srcSubresourceLayers, Edge srcEdge); const VkImageSubresourceLayers &srcSubresourceLayers, Edge srcEdge);
std::mutex blitMutex; std::mutex blitMutex;
RoutineCacheT<State, BlitFunction::CFunctionType> blitCache; // guarded by blitMutex RoutineCache<State, BlitFunction::CFunctionType> blitCache; // guarded by blitMutex
std::mutex cornerUpdateMutex; std::mutex cornerUpdateMutex;
RoutineCacheT<State, CornerUpdateFunction::CFunctionType> cornerUpdateCache; // guarded by cornerUpdateMutex RoutineCache<State, CornerUpdateFunction::CFunctionType> cornerUpdateCache; // guarded by cornerUpdateMutex
}; };
} // namespace sw } // namespace sw
......
...@@ -159,7 +159,7 @@ public: ...@@ -159,7 +159,7 @@ public:
Factor factor; Factor factor;
private: private:
using RoutineCacheType = RoutineCacheT<State, RasterizerFunction::CFunctionType>; using RoutineCacheType = RoutineCache<State, RasterizerFunction::CFunctionType>;
RoutineCacheType *routineCache; RoutineCacheType *routineCache;
}; };
......
...@@ -23,11 +23,8 @@ namespace sw { ...@@ -23,11 +23,8 @@ namespace sw {
using namespace rr; using namespace rr;
template<class State>
using RoutineCache = LRUCache<State, std::shared_ptr<Routine>>;
template<class State, class FunctionType> template<class State, class FunctionType>
using RoutineCacheT = LRUCache<State, RoutineT<FunctionType>>; using RoutineCache = LRUCache<State, RoutineT<FunctionType>>;
} // namespace sw } // namespace sw
......
...@@ -79,7 +79,7 @@ public: ...@@ -79,7 +79,7 @@ public:
void setRoutineCacheSize(int cacheSize); void setRoutineCacheSize(int cacheSize);
private: private:
using RoutineCacheType = RoutineCacheT<State, SetupFunction::CFunctionType>; using RoutineCacheType = RoutineCache<State, SetupFunction::CFunctionType>;
RoutineCacheType *routineCache; RoutineCacheType *routineCache;
}; };
......
...@@ -100,7 +100,7 @@ public: ...@@ -100,7 +100,7 @@ public:
void setRoutineCacheSize(int cacheSize); void setRoutineCacheSize(int cacheSize);
private: private:
using RoutineCacheType = RoutineCacheT<State, VertexRoutineFunction::CFunctionType>; using RoutineCacheType = RoutineCache<State, VertexRoutineFunction::CFunctionType>;
RoutineCacheType *routineCache; RoutineCacheType *routineCache;
}; };
......
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