summaryrefslogtreecommitdiff
path: root/src/i830_memory.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-11-29 15:06:32 -0800
committerEric Anholt <eric@anholt.net>2006-11-29 15:06:32 -0800
commitb6fc8df9a52f5fe1b4d26ae06bc4d48235b44a67 (patch)
treef900773d3c287c46f7f879a72630de03b236b65e /src/i830_memory.c
parent359dc81c07901665da0f86c573c096fa1661cdd2 (diff)
Properly detect the GTT size on the G965.
In the past, the GTT has always been sized just large enough to map the whole graphics aperture. However, apparently on the G965 that isn't the case, and it is actually 512KB on hardware with a 256MB aperture. This resulted in X not bothering to allocate memory for 256KB that it thought was already mapped into stolen memory, and thus garbage rendering (particularly visible in large video modes that displayed this unallocated memory). The kernel happens to get the right answer by hardwiring a 512KB GTT size already, but that may not be true on future hardware. Instead, we use a convenient field in PGETBL_CTL that's specifically for the GTT size rather than the aperture size, which gets us the answer we want.
Diffstat (limited to 'src/i830_memory.c')
0 files changed, 0 insertions, 0 deletions