summaryrefslogtreecommitdiff
path: root/src/sna
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
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')
-rw-r--r--src/sna/gen3_render.c2
-rw-r--r--src/sna/gen4_render.c2
-rw-r--r--src/sna/gen5_render.c2
-rw-r--r--src/sna/gen6_render.c2
-rw-r--r--src/sna/gen7_render.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index 9cc13492..04ec8890 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -1997,8 +1997,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;
sna->render.vertex_index += 3*want;
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index 92802469..4abcb97b 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -661,8 +661,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;
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c
index 8b9eaac1..9a9c223e 100644
--- a/src/sna/gen5_render.c
+++ b/src/sna/gen5_render.c
@@ -647,8 +647,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;
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;
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 7984cf19..0dae8c43 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -1341,8 +1341,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;