diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-03-30 10:18:33 +1300 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-03-30 07:00:00 -0600 |
| commit | 40a973348f579c55d7f10e284d187821e06d0659 (patch) | |
| tree | 228469f555445f454988e54d8e42d6b8cf89599a /layers/core_validation.cpp | |
| parent | 5404ef44c80ee9804e5493f475794a34f5819ef7 (diff) | |
| download | usermoji-40a973348f579c55d7f10e284d187821e06d0659.tar.xz | |
layers: remove unused getTIDIndex function and associated data
This produces warning noise and nobody uses it.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index bccca6d3..f8f38823 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -253,9 +253,6 @@ static unordered_map<void *, layer_data *> layer_data_map; // TODO : This can be much smarter, using separate locks for separate global data static int globalLockInitialized = 0; static loader_platform_thread_mutex globalLock; -#define MAX_TID 513 -static loader_platform_thread_id g_tidMapping[MAX_TID] = {0}; -static uint32_t g_maxTID = 0; #if MTMERGESOURCE // MTMERGESOURCE - start of direct pull static VkPhysicalDeviceMemoryProperties memProps; @@ -1023,21 +1020,6 @@ static void printCBList(layer_data *my_data, void *dispObj) { #endif -// Map actual TID to an index value and return that index -// This keeps TIDs in range from 0-MAX_TID and simplifies compares between runs -static uint32_t getTIDIndex() { - loader_platform_thread_id tid = loader_platform_get_thread_id(); - for (uint32_t i = 0; i < g_maxTID; i++) { - if (tid == g_tidMapping[i]) - return i; - } - // Don't yet have mapping, set it and return newly set index - uint32_t retVal = (uint32_t)g_maxTID; - g_tidMapping[g_maxTID++] = tid; - assert(g_maxTID < MAX_TID); - return retVal; -} - // Return a string representation of CMD_TYPE enum static string cmdTypeToString(CMD_TYPE cmd) { switch (cmd) { |
