diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-11 14:05:17 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-13 09:58:24 +0200 |
commit | 18844005ec5fcf59cf5548e88b6fa94b99c957c9 (patch) | |
tree | 5812eb53988816d415d10fe6edb36b7755715061 /src | |
parent | df2dba558c921f38a1225e043d9987f7de91a07b (diff) |
mesa: remove some unused functions in the perf monitor area
Fixes the following Clang warnings.
main/performance_monitor.c:157:1: warning: unused function 'index_to_queryid' [-Wunused-function]
index_to_queryid(GLuint index)
^
main/performance_monitor.c:163:1: warning: unused function 'queryid_valid' [-Wunused-function]
queryid_valid(const struct gl_context *ctx, GLuint queryid)
^
main/performance_monitor.c:169:1: warning: unused function 'counterid_to_index' [-Wunused-function]
counterid_to_index(GLuint counterid)
^
3 warnings generated.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/performance_monitor.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_monitor.c index a4a2f9e5970..65ea8437fd8 100644 --- a/src/mesa/main/performance_monitor.c +++ b/src/mesa/main/performance_monitor.c @@ -144,33 +144,6 @@ get_counter(const struct gl_perf_monitor_group *group_obj, GLuint id) return &group_obj->Counters[id]; } -/* For INTEL_performance_query, query id 0 is reserved to be invalid. We use - * index to Groups array + 1 as the query id. Same applies to counter id. - */ -static inline GLuint -queryid_to_index(GLuint queryid) -{ - return queryid - 1; -} - -static inline GLuint -index_to_queryid(GLuint index) -{ - return index + 1; -} - -static inline bool -queryid_valid(const struct gl_context *ctx, GLuint queryid) -{ - return get_group(ctx, queryid_to_index(queryid)) != NULL; -} - -static inline GLuint -counterid_to_index(GLuint counterid) -{ - return counterid - 1; -} - /*****************************************************************************/ void GLAPIENTRY |