[gem] Set write domain to CPU when doing pwrite.

Leave the flush call in place, which can fix domains up if necessary.
main
Keith Packard 2008-05-12 13:01:57 -07:00
parent 6950b7da71
commit 6aeff6b9e3
1 changed files with 7 additions and 7 deletions

View File

@ -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;