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:
const VkImageSubresourceLayers &srcSubresourceLayers, Edge srcEdge);
std::mutex blitMutex;
RoutineCacheT<State, BlitFunction::CFunctionType> blitCache; // guarded by blitMutex
RoutineCache<State, BlitFunction::CFunctionType> blitCache; // guarded by blitMutex
std::mutex cornerUpdateMutex;
RoutineCacheT<State, CornerUpdateFunction::CFunctionType> cornerUpdateCache; // guarded by cornerUpdateMutex
RoutineCache<State, CornerUpdateFunction::CFunctionType> cornerUpdateCache; // guarded by cornerUpdateMutex
};
} // namespace sw
......
......@@ -159,7 +159,7 @@ public:
Factor factor;
private:
using RoutineCacheType = RoutineCacheT<State, RasterizerFunction::CFunctionType>;
using RoutineCacheType = RoutineCache<State, RasterizerFunction::CFunctionType>;
RoutineCacheType *routineCache;
};
......
......@@ -23,11 +23,8 @@ namespace sw {
using namespace rr;
template<class State>
using RoutineCache = LRUCache<State, std::shared_ptr<Routine>>;
template<class State, class FunctionType>
using RoutineCacheT = LRUCache<State, RoutineT<FunctionType>>;
using RoutineCache = LRUCache<State, RoutineT<FunctionType>>;
} // namespace sw
......
......@@ -79,7 +79,7 @@ public:
void setRoutineCacheSize(int cacheSize);
private:
using RoutineCacheType = RoutineCacheT<State, SetupFunction::CFunctionType>;
using RoutineCacheType = RoutineCache<State, SetupFunction::CFunctionType>;
RoutineCacheType *routineCache;
};
......
......@@ -100,7 +100,7 @@ public:
void setRoutineCacheSize(int cacheSize);
private:
using RoutineCacheType = RoutineCacheT<State, VertexRoutineFunction::CFunctionType>;
using RoutineCacheType = RoutineCache<State, VertexRoutineFunction::CFunctionType>;
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