gallium/hud: dump hud_driver_query values to files
authorEdmondo Tommasina <edmondo.tommasina@gmail.com>
Wed, 21 Dec 2016 21:58:09 +0000 (22:58 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 31 Dec 2016 23:03:06 +0000 (00:03 +0100)
commit22cd9040da75cac6e1c61b821e1ac6906ac4a8ac
tree09cb6095ef2e83054de36813a549112e4ed226f3
parent1f13cb8b153b92bf1da8caa62c9176b875fe7e0f
gallium/hud: dump hud_driver_query values to files

Dump values for every selected data source in GALLIUM_HUD.

Every data source has its own file and the filename is
equal to the data source identifier.

Set GALLIUM_HUD_DUMP_DIR to dump values to files in this directory.

No values are dumped if the environment variable is not set, the
directory doesn't exist or the user doesn't have write access.

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/hud/hud_context.c
src/gallium/auxiliary/hud/hud_driver_query.c
src/gallium/auxiliary/hud/hud_private.h