[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,9 +276,9 @@ 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,
|
||||
DRM_GEM_DOMAIN_CPU,
|
||||
0);
|
||||
ret = dev->driver->gem_set_domain(obj,
|
||||
DRM_GEM_DOMAIN_CPU,
|
||||
0);
|
||||
if (ret) {
|
||||
drm_gem_object_unreference(obj);
|
||||
return 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,
|
||||
DRM_GEM_DOMAIN_CPU,
|
||||
0);
|
||||
ret = dev->driver->gem_set_domain(obj,
|
||||
DRM_GEM_DOMAIN_CPU,
|
||||
DRM_GEM_DOMAIN_CPU);
|
||||
if (ret) {
|
||||
drm_gem_object_unreference(obj);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue