agp/intel: Respect the GTT size on Sandybridge for scratch page setup.
authorEric Anholt <eric@anholt.net>
Thu, 18 Mar 2010 18:24:06 +0000 (11:24 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 18 Mar 2010 23:47:59 +0000 (16:47 -0700)
commit285aca8e2a7f8af2a18cf89d1dfa95df2f9c9132
tree1a70fdd1d5278386accf55b4b7698526e6ff886c
parent915a428e43acfd05e4ffeaf40549b0cf163eebe2
agp/intel: Respect the GTT size on Sandybridge for scratch page setup.

This is similar to 14bc490bbdf1b194ad1f5f3d2a0a27edfdf78986 which
respected it for how much of the GTT we would actually use.  Now we
won't clear beyond allocated memory when filling the GTT with scratch
page addresses.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/char/agp/intel-agp.c