summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2015-11-06 14:19:54 +0100
committerNicolai Hähnle <[email protected]>2015-11-20 17:26:59 +0100
commit4e1339691d3e04eb7e90d33ab5900ce1a40e628f (patch)
treea84008f0eee43b982c6889e3f32d15f34fc27164 /src/mesa
parent050db20d37307b30b05abca368e865f15daf728c (diff)
st/mesa: map semantic driver query types to underlying type
Reviewed-by: Samuel Pitoiset <[email protected]> Tested-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_perfmon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_perfmon.c b/src/mesa/state_tracker/st_cb_perfmon.c
index 4ec6d86d6ba..dedb8f520f4 100644
--- a/src/mesa/state_tracker/st_cb_perfmon.c
+++ b/src/mesa/state_tracker/st_cb_perfmon.c
@@ -334,6 +334,9 @@ st_init_perfmon(struct st_context *st)
c->Name = info.name;
switch (info.type) {
case PIPE_DRIVER_QUERY_TYPE_UINT64:
+ case PIPE_DRIVER_QUERY_TYPE_BYTES:
+ case PIPE_DRIVER_QUERY_TYPE_MICROSECONDS:
+ case PIPE_DRIVER_QUERY_TYPE_HZ:
c->Minimum.u64 = 0;
c->Maximum.u64 = info.max_value.u64 ? info.max_value.u64 : -1;
c->Type = GL_UNSIGNED_INT64_AMD;