Revert "llvmpipe: try to keep plane c values small"
This reverts commit 9773722c2b
.
Looks like there are some floor/rounding issues here that need
to be better understood.
This commit is contained in:
parent
22ec25e2bf
commit
0ca0382d1b
|
@ -640,7 +640,8 @@ try_setup_line( struct lp_setup_context *setup,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plane->c = (plane->c + (FIXED_ONE-1)) / FIXED_ONE;
|
plane->dcdx *= FIXED_ONE;
|
||||||
|
plane->dcdy *= FIXED_ONE;
|
||||||
|
|
||||||
/* find trivial reject offsets for each edge for a single-pixel
|
/* find trivial reject offsets for each edge for a single-pixel
|
||||||
* sized block. These will be scaled up at each recursive level to
|
* sized block. These will be scaled up at each recursive level to
|
||||||
|
|
|
@ -343,14 +343,7 @@ do_triangle_ccw(struct lp_setup_context *setup,
|
||||||
* Also, sometimes (in FBO cases) GL will render upside down
|
* Also, sometimes (in FBO cases) GL will render upside down
|
||||||
* to its usual method, in which case it will probably want
|
* to its usual method, in which case it will probably want
|
||||||
* to use the opposite, top-left convention.
|
* to use the opposite, top-left convention.
|
||||||
*
|
|
||||||
* XXX: Chances are this will get stripped away. In fact this
|
|
||||||
* is only meaningful if:
|
|
||||||
*
|
|
||||||
* (plane->c & (FIXED_ONE-1)) == 0
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if ((plane->c & (FIXED_ONE-1)) == 0) {
|
|
||||||
if (plane->dcdx < 0) {
|
if (plane->dcdx < 0) {
|
||||||
/* both fill conventions want this - adjust for left edges */
|
/* both fill conventions want this - adjust for left edges */
|
||||||
plane->c++;
|
plane->c++;
|
||||||
|
@ -367,10 +360,9 @@ do_triangle_ccw(struct lp_setup_context *setup,
|
||||||
if (plane->dcdy < 0) plane->c++;
|
if (plane->dcdy < 0) plane->c++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
plane->c = (plane->c + (FIXED_ONE-1)) / FIXED_ONE;
|
|
||||||
|
|
||||||
|
plane->dcdx *= FIXED_ONE;
|
||||||
|
plane->dcdy *= FIXED_ONE;
|
||||||
|
|
||||||
/* find trivial reject offsets for each edge for a single-pixel
|
/* find trivial reject offsets for each edge for a single-pixel
|
||||||
* sized block. These will be scaled up at each recursive level to
|
* sized block. These will be scaled up at each recursive level to
|
||||||
|
|
Loading…
Reference in New Issue