summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-01-17 13:37:17 +0900
committerJosé Fonseca <[email protected]>2008-01-17 13:37:17 +0900
commitb016f0adba8278f3744d3aaa207a1b586d51756d (patch)
tree817a9a5b6e15413a0753e81374df73e57338f667
parentc04f4174923cda7beed1945f8ab77fd5cea1b50c (diff)
gallium: Pass PIPE_BUFFER_USAGE_PIXEL to buffer_data.
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c b/src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c
index c7b519d95be..340fa2fb85f 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c
@@ -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;