[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

@ -365,7 +365,7 @@ drm_gem_pwrite_ioctl(struct drm_device *dev, void *data,
if (dev->driver->gem_set_domain) {
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;