From cc313b3ffeb1315dfa6a088da7f5f177aff9d192 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 14 Aug 2014 20:46:29 +0100 Subject: gallium/ilo: 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: Chia-I Wu Signed-off-by: Emil Velikov --- src/gallium/drivers/i915/i915_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/i915') diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index 3af0b151b5a..0dfd3bb7b1f 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -301,7 +301,7 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap) if (!os_get_total_physical_memory(&system_memory)) return 0; - return MIN2(gpu_mappable_megabytes, (int) (system_memory >> 20)); + return MIN2(gpu_mappable_megabytes, (int)(system_memory >> 20)); } case PIPE_CAP_UMA: return 1; -- cgit v1.2.3