projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd70304
)
r300: mark VBO buffer objects as persistent
author
Maciej Cencora
<m.cencora@gmail.com>
Fri, 14 Aug 2009 20:32:57 +0000
(22:32 +0200)
committer
Maciej Cencora
<m.cencora@gmail.com>
Fri, 14 Aug 2009 22:39:19 +0000
(
00:39
+0200)
src/mesa/drivers/dri/r300/r300_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_draw.c
b/src/mesa/drivers/dri/r300/r300_draw.c
index 37445af1ad53a921523b9fc5d49c8b2aa9808e27..cebb9a10d8b8aed33c391955e9d31cf8ccb4cfc6 100644
(file)
--- a/
src/mesa/drivers/dri/r300/r300_draw.c
+++ b/
src/mesa/drivers/dri/r300/r300_draw.c
@@
-503,10
+503,13
@@
static void r300SetVertexFormat(GLcontext *ctx, const struct gl_client_array *ar
aos->components = vbuf->attribs[i].dwords;
aos->bo = vbuf->attribs[i].bo;
+ radeon_cs_space_check_with_bo(r300->radeon.cmdbuf.cs,
+ r300->vbuf.attribs[i].bo,
+ RADEON_GEM_DOMAIN_GTT, 0);
if (vbuf->attribs[i].is_named_bo) {
- radeon_cs_space_
check_with
_bo(r300->radeon.cmdbuf.cs,
-
aos->
bo,
- RADEON_GEM_DOMAIN_GTT, 0);
+ radeon_cs_space_
add_persistent
_bo(r300->radeon.cmdbuf.cs,
+
r300->vbuf.attribs[i].
bo,
+
RADEON_GEM_DOMAIN_GTT, 0);
}
}
r300->radeon.tcl.aos_count = vbuf->num_attribs;