summaryrefslogtreecommitdiff
path: root/src/sna/gen6_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-02-26 00:27:12 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-26 00:27:12 +0000
commit49d9c5e9d48d043a8366b6471128c999b5e887b0 (patch)
treef65c2c640badcb78593bf7157fb766e1e61fb086 /src/sna/gen6_render.c
parent94b95cc2fc63457903a7b7b6eaa09bc27f25750c (diff)
sna: Reverse inverted assertions
Oops, the assertions that we had sufficient free space was inverted. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r--src/sna/gen6_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index d4105141..31953881 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -1196,8 +1196,8 @@ start:
goto start;
}
- assert(op->floats_per_rect >= vertex_space(sna));
assert(rem <= vertex_space(sna));
+ assert(op->floats_per_rect <= rem);
if (want > 1 && want * op->floats_per_rect > rem)
want = rem / op->floats_per_rect;