i965: Use drm_intel_get_aperture_sizes instead of hard-coded 2GiB
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 11 Nov 2013 18:57:55 +0000 (10:57 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 13 Nov 2013 22:49:27 +0000 (14:49 -0800)
commitcb6182bdfa7c8a5a773ec21112886f742df99840
treef32c8f7c134baaeca1d464e7d4d8cd251f8f8c19
parent9fe108db0942ebf41cd1cce0ca6a6444901fbb0a
i965: Use drm_intel_get_aperture_sizes instead of hard-coded 2GiB

Systems with little physical memory installed will report less than
2GiB, and some systems may (hypothetically?) have a larger address space
for the GPU.  My IVB still reports 1534.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: "10.0" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/intel_screen.c