dri/i9*5: correctly calculate the amount of system memory
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 22 Feb 2014 03:04:02 +0000 (03:04 +0000)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 1 Mar 2014 16:49:59 +0000 (08:49 -0800)
commitfc25956badb8e1932cc19d8c97b4be16e92dfc65
treef264560147a9822843294979e15b4323fbf198ed
parentf19271c7bf73efe6d583e9dc5fc37329558a5cc3
dri/i9*5: correctly calculate the amount of system memory

The variable name states megabytes, while we calculate the amount in
kilobytes. Correct this by dividing with the correct amount.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.c