diff options
author | Marek Olšák <[email protected]> | 2013-03-22 02:39:42 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-03-26 01:28:19 +0100 |
commit | 8ddae684aff5bae3f9bf12b35d938fe53aadc1a8 (patch) | |
tree | 23900c4e4cc6a00fcceca502e670f4b34b6dd60f /src/gallium/drivers/r600/r600_pipe.c | |
parent | 2504380aafe5ff745c87a2e715bc29a20597ebe4 (diff) |
r600g: add a driver query returning the amount of requested VRAM and GTT memory
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 0e113a1b827..443a91eb89f 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -1081,8 +1081,11 @@ static int r600_get_driver_query_info(struct pipe_screen *screen, unsigned index, struct pipe_driver_query_info *info) { + struct r600_screen *rscreen = (struct r600_screen*)screen; struct pipe_driver_query_info list[] = { {"draw-calls", R600_QUERY_DRAW_CALLS, 0}, + {"requested-VRAM", R600_QUERY_REQUESTED_VRAM, rscreen->info.vram_size, TRUE}, + {"requested-GTT", R600_QUERY_REQUESTED_GTT, rscreen->info.gart_size, TRUE}, }; if (!info) |