gallium: Pass PIPE_BUFFER_USAGE_PIXEL to buffer_data.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 17 Jan 2008 04:37:17 +0000 (13:37 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 17 Jan 2008 04:37:17 +0000 (13:37 +0900)
src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c

index c7b519d95be6eb3627387e5254e56dd6d4d7871a..340fa2fb85f6bb0aa04fa03895839ba5df40fbaa 100644 (file)
@@ -227,7 +227,7 @@ intel_i915_surface_alloc_storage(struct pipe_winsys *winsys,
                              surf->buffer,
                              surf->pitch * surf->cpp * height,
                              NULL,
-                             0);
+                             PIPE_BUFFER_USAGE_PIXEL);
    if(ret) {
       winsys->buffer_reference(winsys, &surf->buffer, NULL);
       return ret;