summaryrefslogtreecommitdiff
path: root/src/sna/gen4_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-06-22 22:01:37 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-22 22:01:37 +0100
commite8b090902e788257610374deae659f01a91888f3 (patch)
tree41ae941641f9760aa0a03e937e8f90931fed30eb /src/sna/gen4_render.c
parent565297e6bd3457a150036af9c62fe0dc67b794ac (diff)
sna/gen3+: Remove stale assertions for cached vbo
Following the previous commit, we reset the vbo when it becomes idle rather than discard it. As such, the assertions to check that we are discarding the vbo are now bogus. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen4_render.c')
-rw-r--r--src/sna/gen4_render.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index 6379a186..cd4ca361 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -426,12 +426,8 @@ static void gen4_vertex_close(struct sna *sna)
DBG(("%s: used=%d, vbo active? %d\n",
__FUNCTION__, sna->render.vertex_used, sna->render.vbo != NULL));
- if (!sna->render.vertex_used) {
- assert(sna->render.vbo == NULL);
- assert(sna->render.vertices == sna->render.vertex_data);
- assert(sna->render.vertex_size == ARRAY_SIZE(sna->render.vertex_data));
+ if (!sna->render.vertex_used)
return;
- }
bo = sna->render.vbo;
if (bo) {