util: Use pipe_buffer_write_nooverlap in blits / mipmap generation.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 21 Jan 2010 17:32:17 +0000 (09:32 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 21 Jan 2010 23:18:40 +0000 (15:18 -0800)
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c

index 5038642599531044a819d1f993b7066b442998b8..cf35d3d5df6dc1cd72ba06405cc208ff5bb04e3b 100644 (file)
@@ -224,8 +224,8 @@ setup_vertex_data_tex(struct blit_state *ctx,
 
    offset = get_next_slot( ctx );
 
-   pipe_buffer_write(ctx->pipe->screen, ctx->vbuf,
-                     offset, sizeof(ctx->vertices), ctx->vertices);
+   pipe_buffer_write_nooverlap(ctx->pipe->screen, ctx->vbuf,
+                               offset, sizeof(ctx->vertices), ctx->vertices);
 
    return offset;
 }
index aa823aa218bde6f95f6f0bc683cec9fae5955c1e..e47928b43986215417ef7433b5e939f3e1cfb734 100644 (file)
@@ -1457,8 +1457,8 @@ set_vertex_data(struct gen_mipmap_state *ctx,
 
    offset = get_next_slot( ctx );
 
-   pipe_buffer_write(ctx->pipe->screen, ctx->vbuf,
-                     offset, sizeof(ctx->vertices), ctx->vertices);
+   pipe_buffer_write_nooverlap(ctx->pipe->screen, ctx->vbuf,
+                               offset, sizeof(ctx->vertices), ctx->vertices);
 
    return offset;
 }