From: José Fonseca Date: Thu, 17 Jan 2008 04:37:17 +0000 (+0900) Subject: gallium: Pass PIPE_BUFFER_USAGE_PIXEL to buffer_data. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b016f0adba8278f3744d3aaa207a1b586d51756d;p=mesa.git gallium: Pass PIPE_BUFFER_USAGE_PIXEL to buffer_data. --- 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;