diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-04-07 04:03:49 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-04-07 04:03:49 +0000 |
commit | 462efc00b689905889b045399af888e727ffb96f (patch) | |
tree | d6263db627fe52fd0ffb48df92145c55858fc9ec /sys/dev/pci | |
parent | 6489af5d82eb6c6d0a5192165dc18fc16ca316f4 (diff) |
drm/i915/gem: Flush lmem contents after construction
From Chris Wilson
21ee19974b19edcda7a8e4f9bd5b02c3a750a69e in linux-6.1.y/6.1.23
d032ca43f2c80049ce5aabd3f208dc3849359497 in mainline linux
Diffstat (limited to 'sys/dev/pci')
-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; } |