Mesa (mesa_7_7_branch): util: Use pipe_buffer_write_nooverlap in blits / mipmap generation.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Jan 21 23:27:44 UTC 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: 17974949464b75f25f635443067b4495bb451248
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=17974949464b75f25f635443067b4495bb451248

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Jan 21 09:32:17 2010 -0800

util: Use pipe_buffer_write_nooverlap in blits / mipmap generation.

---

 src/gallium/auxiliary/util/u_blit.c       |    4 ++--
 src/gallium/auxiliary/util/u_gen_mipmap.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c
index 5038642..cf35d3d 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -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;
 }
diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c
index aa823aa..e47928b 100644
--- a/src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/src/gallium/auxiliary/util/u_gen_mipmap.c
@@ -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;
 }




More information about the mesa-commit mailing list