gallium/radeon: change some driver query types to Hz
authorMarek Olšák <marek.olsak@amd.com>
Sun, 2 Aug 2015 15:09:01 +0000 (17:09 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 6 Aug 2015 18:44:36 +0000 (20:44 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index 79b4b544004f3f2572236118959ee17ecf65381c..48920e3a4c20cbab7b554c7e99965b6386589f4c 100644 (file)
@@ -698,8 +698,8 @@ static int r600_get_driver_query_info(struct pipe_screen *screen,
                {"VRAM-usage", R600_QUERY_VRAM_USAGE, {rscreen->info.vram_size}, PIPE_DRIVER_QUERY_TYPE_BYTES},
                {"GTT-usage", R600_QUERY_GTT_USAGE, {rscreen->info.gart_size}, PIPE_DRIVER_QUERY_TYPE_BYTES},
                {"temperature", R600_QUERY_GPU_TEMPERATURE, {100}},
-               {"shader-clock", R600_QUERY_CURRENT_GPU_SCLK, {0}},
-               {"memory-clock", R600_QUERY_CURRENT_GPU_MCLK, {0}},
+               {"shader-clock", R600_QUERY_CURRENT_GPU_SCLK, {0}, PIPE_DRIVER_QUERY_TYPE_HZ},
+               {"memory-clock", R600_QUERY_CURRENT_GPU_MCLK, {0}, PIPE_DRIVER_QUERY_TYPE_HZ},
                {"GPU-load", R600_QUERY_GPU_LOAD, {100}}
        };
        unsigned num_queries;