st/nine: return GetAvailableTextureMem in bytes as expected (v2)
authorDavid Heidelberg <david@ixit.cz>
Mon, 24 Nov 2014 23:38:07 +0000 (00:38 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 26 Nov 2014 20:09:11 +0000 (20:09 +0000)
commita99f31bced1ac5dfea9942bb37301a21c9a73189
tree0ca1c39f498c048e4f5e92365807cadd0a2f340f
parent4eea2496bcb573d730f84f34fb76db3e1ec2e733
st/nine: return GetAvailableTextureMem in bytes as expected (v2)

PIPE_CAP_VIDEO_MEMORY returns the amount of video memory in megabytes,
so need to converted it to bytes.

Fixed Warframe memory detection.

v2: also prepare for cards with more than 4GB memory

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
Tested-by: Yaroslav Andrusyak <pontostroy@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Signed-off-by: David Heidelberg <david@ixit.cz>
src/gallium/state_trackers/nine/device9.c