diff options
author | Emil Velikov <[email protected]> | 2014-08-14 20:11:32 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-08-15 17:42:46 +0100 |
commit | 5b9cb1329557cc17e1533aed7c63e1252658d74b (patch) | |
tree | 9cd1f7f10cd523590b5baa58cd6fdb1427e493b1 /src/gallium/drivers/i915/i915_winsys.h | |
parent | e9c43b1f01b10170f55acac66edc4e6d1b170260 (diff) |
gallium/i915: handle query_renderer caps
Implementation based on the classic driver with the following
changes:
- Use auxiliarry function os_get_total_physical_memory to get the
total amount of memory.
- Move the libdrm_intel specific get_aperture_size to the winsys.
Cc: Stephane Marchesin <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_winsys.h')
-rw-r--r-- | src/gallium/drivers/i915/i915_winsys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_winsys.h b/src/gallium/drivers/i915/i915_winsys.h index 8823c549a33..6cf802fe073 100644 --- a/src/gallium/drivers/i915/i915_winsys.h +++ b/src/gallium/drivers/i915/i915_winsys.h @@ -247,6 +247,11 @@ struct i915_winsys { struct pipe_fence_handle *fence); /*@}*/ + /** + * Retrieve the aperture size (in MiB) of the device. + */ + int (*aperture_size)(struct i915_winsys *iws); + /** * Destroy the winsys. |