Module: Mesa
Branch: master
Commit: 7fe0dd2e6e927e4ec3e532e08aa0551ebaec4cc1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7fe0dd2e6e927e4ec3e532e08aa0551ebaec4cc1

Author: Maciej Cencora <m.cenc...@gmail.com>
Date:   Fri Aug 14 22:32:57 2009 +0200

r300: mark VBO buffer objects as persistent

---

 src/mesa/drivers/dri/r300/r300_draw.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/r300_draw.c 
b/src/mesa/drivers/dri/r300/r300_draw.c
index 37445af..cebb9a1 100644
--- 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;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to