summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--src/sna/gen8_render.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index 9a6761f6..6c2d3808 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -941,7 +941,7 @@ gen4_emit_drawing_rectangle(struct sna *sna, const struct sna_composite_op *op)
uint32_t limit = (op->dst.height - 1) << 16 | (op->dst.width - 1);
uint32_t offset = (uint16_t)op->dst.y << 16 | (uint16_t)op->dst.x;
- assert(!too_large(op->dst.x, op->dst.y));
+ assert(!too_large(abs(op->dst.x), abs(op->dst.y)));
assert(!too_large(op->dst.width, op->dst.height));
if (sna->render_state.gen4.drawrect_limit == limit &&
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c
index 1ebaef9d..435e6749 100644
--- a/src/sna/gen5_render.c
+++ b/src/sna/gen5_render.c
@@ -877,7 +877,7 @@ gen5_emit_drawing_rectangle(struct sna *sna, const struct sna_composite_op *op)
uint32_t limit = (op->dst.height - 1) << 16 | (op->dst.width - 1);
uint32_t offset = (uint16_t)op->dst.y << 16 | (uint16_t)op->dst.x;
- assert(!too_large(op->dst.x, op->dst.y));
+ assert(!too_large(abs(op->dst.x), abs(op->dst.y)));
assert(!too_large(op->dst.width, op->dst.height));
if (!DBG_NO_STATE_CACHE &&
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index 86ea1467..5c625efc 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -687,7 +687,7 @@ gen6_emit_drawing_rectangle(struct sna *sna,
uint32_t limit = (op->dst.height - 1) << 16 | (op->dst.width - 1);
uint32_t offset = (uint16_t)op->dst.y << 16 | (uint16_t)op->dst.x;
- assert(!too_large(op->dst.x, op->dst.y));
+ assert(!too_large(abs(op->dst.x), abs(op->dst.y)));
assert(!too_large(op->dst.width, op->dst.height));
if (sna->render_state.gen6.drawrect_limit == limit &&
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 571de6e0..16e666b9 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -923,7 +923,7 @@ gen7_emit_drawing_rectangle(struct sna *sna,
uint32_t limit = (op->dst.height - 1) << 16 | (op->dst.width - 1);
uint32_t offset = (uint16_t)op->dst.y << 16 | (uint16_t)op->dst.x;
- assert(!too_large(op->dst.x, op->dst.y));
+ assert(!too_large(abs(op->dst.x), abs(op->dst.y)));
assert(!too_large(op->dst.width, op->dst.height));
if (sna->render_state.gen7.drawrect_limit == limit &&
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c
index e251315b..6cc7a68b 100644
--- a/src/sna/gen8_render.c
+++ b/src/sna/gen8_render.c
@@ -989,7 +989,7 @@ gen8_emit_drawing_rectangle(struct sna *sna,
uint32_t limit = (op->dst.height - 1) << 16 | (op->dst.width - 1);
uint32_t offset = (uint16_t)op->dst.y << 16 | (uint16_t)op->dst.x;
- assert(!too_large(op->dst.x, op->dst.y));
+ assert(!too_large(abs(op->dst.x), abs(op->dst.y)));
assert(!too_large(op->dst.width, op->dst.height));
if (sna->render_state.gen8.drawrect_limit == limit &&