[gem] Set write domain to CPU when doing pwrite.
Leave the flush call in place, which can fix domains up if necessary.main
parent
6950b7da71
commit
6aeff6b9e3
|
@ -276,7 +276,7 @@ drm_gem_pread_ioctl(struct drm_device *dev, void *data,
|
|||
return -EINVAL;
|
||||
|
||||
if (dev->driver->gem_set_domain) {
|
||||
ret = dev->driver->gem_set_domain (obj,
|
||||
ret = dev->driver->gem_set_domain(obj,
|
||||
DRM_GEM_DOMAIN_CPU,
|
||||
0);
|
||||
if (ret) {
|
||||
|
@ -363,9 +363,9 @@ drm_gem_pwrite_ioctl(struct drm_device *dev, void *data,
|
|||
return -EINVAL;
|
||||
|
||||
if (dev->driver->gem_set_domain) {
|
||||
ret = dev->driver->gem_set_domain (obj,
|
||||
ret = dev->driver->gem_set_domain(obj,
|
||||
DRM_GEM_DOMAIN_CPU,
|
||||
0);
|
||||
DRM_GEM_DOMAIN_CPU);
|
||||
if (ret) {
|
||||
drm_gem_object_unreference(obj);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue