From: José Fonseca Date: Thu, 21 Jan 2010 17:38:47 +0000 (-0800) Subject: util: Set DISCARD & UNSYNCHRONIZED when uploading vertices sequentially. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37246f854b49101b5a112cd5a0bd93bab1b78f7a;p=mesa.git util: Set DISCARD & UNSYNCHRONIZED when uploading vertices sequentially. --- diff --git a/src/gallium/auxiliary/util/u_upload_mgr.c b/src/gallium/auxiliary/util/u_upload_mgr.c index 975ee89c455..55a65375c81 100644 --- a/src/gallium/auxiliary/util/u_upload_mgr.c +++ b/src/gallium/auxiliary/util/u_upload_mgr.c @@ -85,7 +85,9 @@ my_buffer_write(struct pipe_screen *screen, map = pipe_buffer_map_range(screen, buf, offset, size, PIPE_BUFFER_USAGE_CPU_WRITE | - PIPE_BUFFER_USAGE_FLUSH_EXPLICIT); + PIPE_BUFFER_USAGE_FLUSH_EXPLICIT | + PIPE_BUFFER_USAGE_DISCARD | + PIPE_BUFFER_USAGE_UNSYNCHRONIZED); if (map == NULL) return PIPE_ERROR_OUT_OF_MEMORY;