diff options
author | Marek Olšák <maraeo@gmail.com> | 2012-04-26 13:45:29 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2012-04-30 01:18:49 +0200 |
commit | 3b5f4b173b2703b7f72dcf33ad4cb00347712733 (patch) | |
tree | 709d3f27544b771194a59a6d122aef9da3f07573 | |
parent | 3ac0683d632347347c2fdbd546da0c7c2effb08a (diff) |
gallium/util: stop using user buffers in util_draw_texquad
-rw-r--r-- | src/gallium/auxiliary/util/u_draw_quad.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_draw_quad.c b/src/gallium/auxiliary/util/u_draw_quad.c index 590fa0c36bb..1fbe12171c5 100644 --- a/src/gallium/auxiliary/util/u_draw_quad.c +++ b/src/gallium/auxiliary/util/u_draw_quad.c @@ -118,10 +118,11 @@ util_draw_texquad(struct pipe_context *pipe, struct cso_context *cso, v[28] = 0.0; v[29] = 1.0; - vbuf = pipe_user_buffer_create(pipe->screen, v, vertexBytes, - PIPE_BIND_VERTEX_BUFFER); + vbuf = pipe_buffer_create(pipe->screen, PIPE_BIND_VERTEX_BUFFER, + PIPE_USAGE_STAGING, vertexBytes); if (!vbuf) goto out; + pipe_buffer_write(pipe, vbuf, 0, vertexBytes, v); util_draw_vertex_buffer(pipe, cso, vbuf, 0, PIPE_PRIM_TRIANGLE_FAN, 4, 2); |