diff options
author | Thomas Hellstrom <thomas-at-shipmail-dot-org> | 2009-04-30 09:37:52 +0200 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-shipmail-dot-org> | 2009-04-30 09:37:52 +0200 |
commit | 6575b6a91479485a56057051e7d7f7c3a6a59314 (patch) | |
tree | 04d4595ef647e5010ca524f7de798154b8accac6 | |
parent | 934dcdd36329f9a4123f8549268d2f8e147020c3 (diff) |
openchrome: Use cached system memory when evicting from VRAM.
-rw-r--r-- | linux-core/openchrome/via_buffer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux-core/openchrome/via_buffer.c b/linux-core/openchrome/via_buffer.c index 6be83ba1..57d1d592 100644 --- a/linux-core/openchrome/via_buffer.c +++ b/linux-core/openchrome/via_buffer.c @@ -122,8 +122,12 @@ uint32_t via_evict_flags(struct ttm_buffer_object * bo) */ case TTM_PL_PRIV0: return cur_placement | TTM_PL_FLAG_SYSTEM | TTM_PL_FLAG_WC; + case TTM_PL_TT: + return cur_placement | TTM_PL_FLAG_SYSTEM; default: - return cur_placement | TTM_PL_FLAG_SYSTEM | TTM_PL_FLAG_WC; + return (cur_placement & ~TTM_PL_MASK_CACHING) | + TTM_PL_FLAG_SYSTEM | + TTM_PL_FLAG_CACHED; } } |