This reports the currently used vram allocations. userspace using this has been proposed for nvk, but it's a rather trivial uapi addition.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -61,6 +61,13 @@ extern "C" { · 60 unmodified lines | |||
| 61 | */ | 61 | */ |
| 62 | #define NOUVEAU_GETPARAM_VRAM_BAR_SIZE 18 | 62 | #define NOUVEAU_GETPARAM_VRAM_BAR_SIZE 18 |
| 63 | 63 | ||
| 64 | /* | ||
| 65 | * NOUVEAU_GETPARAM_VRAM_USED | ||
| 66 | * | ||
| 67 | * Get remaining VRAM size. | ||
| 68 | */ | ||
| 69 | #define NOUVEAU_GETPARAM_VRAM_USED 19 | ||
| 70 | |||
| 64 | struct drm_nouveau_getparam { | 71 | struct drm_nouveau_getparam { |
| 65 | __u64 param; | 72 | __u64 param; |
| 66 | __u64 value; | 73 | __u64 value; |