diff options
author | José Fonseca <[email protected]> | 2007-11-05 18:04:35 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2007-11-06 14:49:38 +0000 |
commit | fa1a66d7fc4fd7854de7958a48e4992edd154489 (patch) | |
tree | ce48a896ebbef8b09ee363774cdfdf86dfb52da6 /src/mesa/pipe/xlib | |
parent | 4f79dbd5aa6b8a955ac9dcc43cf0852acd89a320 (diff) |
Supply buffer usage hints to winsys.
Winsys driver needs some hints in order to allocate the appropriate kind of
memory for the buffer.
Diffstat (limited to 'src/mesa/pipe/xlib')
-rw-r--r-- | src/mesa/pipe/xlib/xm_winsys.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/pipe/xlib/xm_winsys.c b/src/mesa/pipe/xlib/xm_winsys.c index 5de811a66fa..45ece8ef554 100644 --- a/src/mesa/pipe/xlib/xm_winsys.c +++ b/src/mesa/pipe/xlib/xm_winsys.c @@ -120,7 +120,7 @@ xm_buffer_reference(struct pipe_winsys *pws, static void xm_buffer_data(struct pipe_winsys *pws, struct pipe_buffer_handle *buf, - unsigned size, const void *data ) + unsigned size, const void *data, unsigned usage ) { struct xm_buffer *xm_buf = xm_bo(buf); assert(!xm_buf->userBuffer); @@ -245,7 +245,8 @@ xm_region_alloc(struct pipe_winsys *winsys, winsys->buffer_data( winsys, region->buffer, region->pitch * cpp * height, - NULL ); + NULL, + PIPE_BUFFER_USAGE_PIXEL ); return region; } |