gallium/radeon: add VRAM-vis-usage HUD query
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 25 Jan 2017 15:56:46 +0000 (16:56 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 26 Jan 2017 18:40:52 +0000 (19:40 +0100)
commiteca96ea308dfba41c6bce9c90c79ad8d393e6bbc
treec53e1864044eb61df7e62b357ed9b9fd3456157f
parent9f087e1c7cc869fcb9839282194560d289b7df59
gallium/radeon: add VRAM-vis-usage HUD query

This new query returns the current visible usage of VRAM accessed
by the CPU. It will return 0 on radeon because it's unimplemented.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_query.c
src/gallium/drivers/radeon/r600_query.h
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c