Mesa (master): llvmpipe: fix rasterization of vertical lines on pixel boundaries
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Sat Oct 9 07:19:32 UTC 2010
Module: Mesa
Branch: master
Commit: 6316d540564d116460bfd1382e3eee98480e28ff
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6316d540564d116460bfd1382e3eee98480e28ff
Author: Zack Rusin <zackr at vmware.com>
Date: Thu Oct 7 16:26:17 2010 -0400
llvmpipe: fix rasterization of vertical lines on pixel boundaries
---
src/gallium/drivers/llvmpipe/lp_setup_line.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_line.c b/src/gallium/drivers/llvmpipe/lp_setup_line.c
index 4d7d623..693ac28 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_line.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_line.c
@@ -475,7 +475,7 @@ try_setup_line( struct lp_setup_context *setup,
else {
/* do intersection test */
float xintersect = fracf(v2[0][0]) + y2diff * dxdy;
- draw_end = (xintersect < 1.0 && xintersect > 0.0);
+ draw_end = (xintersect < 1.0 && xintersect >= 0.0);
}
/* Are we already drawing start/end?
@@ -513,7 +513,7 @@ try_setup_line( struct lp_setup_context *setup,
x_offset_end = y_offset_end * dxdy;
}
}
-
+
/* x/y positions in fixed point */
x[0] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset) - fixed_width/2;
x[1] = subpixel_snap(v2[0][0] + x_offset_end - setup->pixel_offset) - fixed_width/2;
More information about the mesa-commit
mailing list