diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2008-04-06 09:46:29 +0200 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2008-04-06 10:30:27 +0200 |
commit | 51a0fdcf3fef5af57938d9958efd698e96d78803 (patch) | |
tree | 48bc58382a06c6e5a88d5c1847a0db4a81fa440b /linux-core | |
parent | 87ae5b22e3120d205f520a99cea31743903d49a2 (diff) |
[I915] Fix VRAM eviction.
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/i915_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/i915_buffer.c b/linux-core/i915_buffer.c index 08067476..8d991c42 100644 --- a/linux-core/i915_buffer.c +++ b/linux-core/i915_buffer.c @@ -249,10 +249,10 @@ int i915_move(struct drm_buffer_object *bo, if (old_mem->mem_type == DRM_BO_MEM_LOCAL) { return drm_bo_move_memcpy(bo, evict, no_wait, new_mem); } else if (new_mem->mem_type == DRM_BO_MEM_LOCAL) { - if (0) /*i915_move_flip(bo, evict, no_wait, new_mem)*/ + if (1) /*i915_move_flip(bo, evict, no_wait, new_mem)*/ return drm_bo_move_memcpy(bo, evict, no_wait, new_mem); } else { - if (0) /*i915_move_blit(bo, evict, no_wait, new_mem)*/ + if (1) /*i915_move_blit(bo, evict, no_wait, new_mem)*/ return drm_bo_move_memcpy(bo, evict, no_wait, new_mem); } return 0; |