i915: Revert accidental change
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Fri, 23 May 2008 14:55:30 +0000 (16:55 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Fri, 23 May 2008 14:55:30 +0000 (16:55 +0200)
src/gallium/winsys/dri/intel/intel_winsys_pipe.c

index 62b43cc3956cf5c81c84bba5c67bdacb60bd6228..6a42c790337205e4aace515353b041e9e4bcd982 100644 (file)
@@ -120,7 +120,7 @@ intel_buffer_create(struct pipe_winsys *winsys,
    buffer->base.size = size;
 
    if (usage & (PIPE_BUFFER_USAGE_VERTEX | PIPE_BUFFER_USAGE_CONSTANT)) {
-      flags |= DRM_BO_FLAG_MEM_LOCAL;
+      flags |= DRM_BO_FLAG_MEM_LOCAL | DRM_BO_FLAG_CACHED;
       pool = iws->mallocPool;
    } else if (usage & PIPE_BUFFER_USAGE_CUSTOM) {
       /* For vertex buffers */