intel: Set render domain on read and write
authorJakob Bornecrantz <wallbraker@gmail.com>
Thu, 29 Jan 2009 01:32:58 +0000 (02:32 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Thu, 29 Jan 2009 02:00:15 +0000 (03:00 +0100)
src/gallium/winsys/drm/intel/gem/intel_be_context.c

index 056a5f050291ea546d75e739cfa64225b11c2071..c1f18a3a04dcdbb014b477cb9f17015bec2d82d0 100644 (file)
@@ -26,10 +26,11 @@ intel_be_batch_reloc(struct i915_winsys *sws,
 
        if (access_flags & I915_BUFFER_ACCESS_WRITE) {
                write = I915_GEM_DOMAIN_RENDER;
+               read = I915_GEM_DOMAIN_RENDER;
        }
 
        if (access_flags & I915_BUFFER_ACCESS_READ) {
-               read = I915_GEM_DOMAIN_VERTEX;
+               read |= I915_GEM_DOMAIN_VERTEX;
        }
 
     debug_printf("%s\n", __FUNCTION__);