Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-swiftshader: Commit

external/swiftshader


Commit MetaInfo

Revisionefca5651464de0849e48743aab523ae178be354b (tree)
Time2020-04-15 02:42:20
AuthorBen Clayton <bclayton@goog...>
CommiterBen Clayton

Log Message

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/+/43816
Tested-by: Ben Clayton <bclayton@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>

Change Summary

Incremental Difference

--- a/src/Device/Blitter.hpp
+++ b/src/Device/Blitter.hpp
@@ -186,9 +186,9 @@ private:
186186 const VkImageSubresourceLayers &srcSubresourceLayers, Edge srcEdge);
187187
188188 std::mutex blitMutex;
189- RoutineCacheT<State, BlitFunction::CFunctionType> blitCache; // guarded by blitMutex
189+ RoutineCache<State, BlitFunction::CFunctionType> blitCache; // guarded by blitMutex
190190 std::mutex cornerUpdateMutex;
191- RoutineCacheT<State, CornerUpdateFunction::CFunctionType> cornerUpdateCache; // guarded by cornerUpdateMutex
191+ RoutineCache<State, CornerUpdateFunction::CFunctionType> cornerUpdateCache; // guarded by cornerUpdateMutex
192192 };
193193
194194 } // namespace sw
--- a/src/Device/PixelProcessor.hpp
+++ b/src/Device/PixelProcessor.hpp
@@ -159,7 +159,7 @@ public:
159159 Factor factor;
160160
161161 private:
162- using RoutineCacheType = RoutineCacheT<State, RasterizerFunction::CFunctionType>;
162+ using RoutineCacheType = RoutineCache<State, RasterizerFunction::CFunctionType>;
163163 RoutineCacheType *routineCache;
164164 };
165165
--- a/src/Device/RoutineCache.hpp
+++ b/src/Device/RoutineCache.hpp
@@ -23,11 +23,8 @@ namespace sw {
2323
2424 using namespace rr;
2525
26-template<class State>
27-using RoutineCache = LRUCache<State, std::shared_ptr<Routine>>;
28-
2926 template<class State, class FunctionType>
30-using RoutineCacheT = LRUCache<State, RoutineT<FunctionType>>;
27+using RoutineCache = LRUCache<State, RoutineT<FunctionType>>;
3128
3229 } // namespace sw
3330
--- a/src/Device/SetupProcessor.hpp
+++ b/src/Device/SetupProcessor.hpp
@@ -79,7 +79,7 @@ public:
7979 void setRoutineCacheSize(int cacheSize);
8080
8181 private:
82- using RoutineCacheType = RoutineCacheT<State, SetupFunction::CFunctionType>;
82+ using RoutineCacheType = RoutineCache<State, SetupFunction::CFunctionType>;
8383 RoutineCacheType *routineCache;
8484 };
8585
--- a/src/Device/VertexProcessor.hpp
+++ b/src/Device/VertexProcessor.hpp
@@ -100,7 +100,7 @@ public:
100100 void setRoutineCacheSize(int cacheSize);
101101
102102 private:
103- using RoutineCacheType = RoutineCacheT<State, VertexRoutineFunction::CFunctionType>;
103+ using RoutineCacheType = RoutineCache<State, VertexRoutineFunction::CFunctionType>;
104104 RoutineCacheType *routineCache;
105105 };
106106
Show on old repository browser