Mesa (master): u_index_modify: map buffers with PIPE_TRANSFER_UNSYNCHRONIZED
Marek Olšák
mareko at kemper.freedesktop.org
Mon Feb 14 06:45:42 UTC 2011
Module: Mesa
Branch: master
Commit: 9a90eeee676450c254f9948ad8f996e88b437e61
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a90eeee676450c254f9948ad8f996e88b437e61
Author: Marek Olšák <maraeo at gmail.com>
Date: Mon Feb 14 06:03:18 2011 +0100
u_index_modify: map buffers with PIPE_TRANSFER_UNSYNCHRONIZED
---
src/gallium/auxiliary/util/u_index_modify.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_index_modify.c b/src/gallium/auxiliary/util/u_index_modify.c
index f2c9db3..fda396b 100644
--- a/src/gallium/auxiliary/util/u_index_modify.c
+++ b/src/gallium/auxiliary/util/u_index_modify.c
@@ -38,7 +38,10 @@ void util_shorten_ubyte_elts_to_userptr(struct pipe_context *context,
unsigned short *out_map = out;
unsigned i;
- in_map = pipe_buffer_map(context, elts, PIPE_TRANSFER_READ, &src_transfer);
+ in_map = pipe_buffer_map(context, elts,
+ PIPE_TRANSFER_READ |
+ PIPE_TRANSFER_UNSYNCHRONIZED,
+ &src_transfer);
in_map += start;
for (i = 0; i < count; i++) {
@@ -87,7 +90,10 @@ void util_rebuild_ushort_elts_to_userptr(struct pipe_context *context,
unsigned short *out_map = out;
unsigned i;
- in_map = pipe_buffer_map(context, elts, PIPE_TRANSFER_READ, &in_transfer);
+ in_map = pipe_buffer_map(context, elts,
+ PIPE_TRANSFER_READ |
+ PIPE_TRANSFER_UNSYNCHRONIZED,
+ &in_transfer);
in_map += start;
for (i = 0; i < count; i++) {
@@ -135,7 +141,10 @@ void util_rebuild_uint_elts_to_userptr(struct pipe_context *context,
unsigned int *out_map = out;
unsigned i;
- in_map = pipe_buffer_map(context, elts, PIPE_TRANSFER_READ, &in_transfer);
+ in_map = pipe_buffer_map(context, elts,
+ PIPE_TRANSFER_READ |
+ PIPE_TRANSFER_UNSYNCHRONIZED,
+ &in_transfer);
in_map += start;
for (i = 0; i < count; i++) {
More information about the mesa-commit
mailing list