diff options
author | Keith Whitwell <keithw@vmware.com> | 2010-03-14 11:26:07 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2010-03-14 11:26:07 +0000 |
commit | ce418533be752dbeb164e7ff82a99483048e482b (patch) | |
tree | 07229107c7dcf2424f8333609d88aa7e1f4a2131 /src/gallium/drivers/softpipe | |
parent | bfda4f2eb34498e4b7f3c608d30fccff6bb9651b (diff) |
gallium: softpipe runs gears with pipe_resources
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_texture.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c index 0d7f7cbd21..f7f2589af3 100644 --- a/src/gallium/drivers/softpipe/sp_texture.c +++ b/src/gallium/drivers/softpipe/sp_texture.c @@ -383,7 +383,8 @@ softpipe_transfer_unmap(struct pipe_context *pipe, static struct pipe_resource * softpipe_user_buffer_create(struct pipe_screen *screen, void *ptr, - unsigned bytes) + unsigned bytes, + unsigned usage) { struct softpipe_resource *buffer; @@ -393,7 +394,7 @@ softpipe_user_buffer_create(struct pipe_screen *screen, pipe_reference_init(&buffer->base.reference, 1); buffer->base.screen = screen; - buffer->base.usage = PIPE_BUFFER_USAGE_CPU_READ; + buffer->base.usage = PIPE_BUFFER_USAGE_CPU_READ | usage; buffer->base.width0 = bytes; buffer->base.height0 = 1; buffer->base.depth0 = 1; |