diff options
Diffstat (limited to 'sys/dev/pci/drm/i915/gem/i915_gem_lmem.c')
-rw-r--r-- | sys/dev/pci/drm/i915/gem/i915_gem_lmem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_lmem.c b/sys/dev/pci/drm/i915/gem/i915_gem_lmem.c index ea4a8b5afe0..1181249d8fe 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_lmem.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_lmem.c @@ -131,7 +131,8 @@ i915_gem_object_create_lmem_from_data(struct drm_i915_private *i915, memcpy(map, data, size); - i915_gem_object_unpin_map(obj); + i915_gem_object_flush_map(obj); + __i915_gem_object_release_map(obj); return obj; } |