diff options
author | Marek Olšák <[email protected]> | 2016-02-01 21:56:50 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-02-05 17:29:38 +0100 |
commit | d2e4c9e7371c108a7655f78ae77f55ced812aba8 (patch) | |
tree | 6aa0a1ed003b03bceeab7af09a85c275b1594709 /src/gallium/include/pipe/p_screen.h | |
parent | c577f2843a0341be1091c0eec81704772e667786 (diff) |
gallium: add interface for querying memory usage and sizes (v2)
If you're worried about the duplication of some CAPs, we can remove them
later.
v2: add fields for memory eviction stats
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_screen.h')
-rw-r--r-- | src/gallium/include/pipe/p_screen.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index f868d71db23..211bc2440f9 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -57,6 +57,7 @@ struct pipe_resource; struct pipe_surface; struct pipe_transfer; struct pipe_box; +struct pipe_memory_info; /** @@ -260,6 +261,11 @@ struct pipe_screen { unsigned index, struct pipe_driver_query_group_info *info); + /** + * Query information about memory usage. + */ + void (*query_memory_info)(struct pipe_screen *screen, + struct pipe_memory_info *info); }; |