projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ac0683
)
gallium/util: stop using user buffers in util_draw_texquad
author
Marek Olšák
<maraeo@gmail.com>
Thu, 26 Apr 2012 11:45:29 +0000
(13:45 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Sun, 29 Apr 2012 23:18:49 +0000
(
01:18
+0200)
src/gallium/auxiliary/util/u_draw_quad.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_draw_quad.c
b/src/gallium/auxiliary/util/u_draw_quad.c
index 590fa0c36bbf93e8a01b20dbb63177f419aabdf7..1fbe12171c5eb48cfa3668a4a0e7a07f55253ba9 100644
(file)
--- 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);