summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorSteven Toth <stoth@kernellabs.com>2016-09-29 08:11:00 -0600
committerBrian Paul <brianp@vmware.com>2016-09-29 17:51:15 -0600
commit1d466b9b04662d41a403ea8fd617a5365750b1de (patch)
tree80c131f35a5c2a06e4541eeb995e77924df9380a /src/gallium/include
parent3abe68b8282496688186157b51da5600ac540906 (diff)
downloadexternal_mesa3d-1d466b9b04662d41a403ea8fd617a5365750b1de.zip
external_mesa3d-1d466b9b04662d41a403ea8fd617a5365750b1de.tar.gz
external_mesa3d-1d466b9b04662d41a403ea8fd617a5365750b1de.tar.bz2
gallium/hud: Add power sensor support
Implement support for power based sensors, reporting units in milli-watts and watts. Also, minor cleanup - change the related if block to a switch. Tested with two different power sensors, including the nouveau 'power1' sensors on a GTX950 card. Signed-off-by: Steven Toth <stoth@kernellabs.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_defines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 317a7c3..12d9b1a 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -969,6 +969,7 @@ enum pipe_driver_query_type
PIPE_DRIVER_QUERY_TYPE_TEMPERATURE,
PIPE_DRIVER_QUERY_TYPE_VOLTS,
PIPE_DRIVER_QUERY_TYPE_AMPS,
+ PIPE_DRIVER_QUERY_TYPE_WATTS,
};
/* Whether an average value per frame or a cumulative value should be