mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 02:18:06 +02:00
[I915] Fix VRAM eviction.
This commit is contained in:
parent
87ae5b22e3
commit
51a0fdcf3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue