nv50: only over-allocate by a page for code
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 4 Feb 2014 07:30:18 +0000 (02:30 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 6 Feb 2014 23:50:19 +0000 (18:50 -0500)
commitf76c7ad5b14f5646a56ca3518f0c2e739811f223
treeeb6e41d21a0292a916342579037ed6e7e01f0d69
parent364bdd24197e83bc76b0d244271e57ef4334a859
nv50: only over-allocate by a page for code

The pre-fetching doesn't go too far. Tested with over-allocating by only
a page, and didn't see any errors in dmesg. Saves ~512KB of VRAM.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: 10.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
src/gallium/drivers/nouveau/nv50/nv50_screen.c