mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 09:10:11 +01:00
llvmpipe: Fix the bottom_edge_rule adjustment for points.
The adjustment needs to be applied to the y coordinates and not the x coordinates, just like the equivalent code for lines and triangles in lp_setup_line.c and lp_setup_tri.c. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Zack Rusin <zackr@vmware.com>
This commit is contained in:
parent
37de6b0682
commit
eda21d2a30
1 changed files with 4 additions and 4 deletions
|
|
@ -371,10 +371,10 @@ try_setup_point( struct lp_setup_context *setup,
|
||||||
*/
|
*/
|
||||||
int adj = (setup->bottom_edge_rule != 0) ? 1 : 0;
|
int adj = (setup->bottom_edge_rule != 0) ? 1 : 0;
|
||||||
|
|
||||||
bbox.x0 = (x0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER;
|
bbox.x0 = (x0 + (FIXED_ONE-1)) >> FIXED_ORDER;
|
||||||
bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER;
|
bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER;
|
||||||
bbox.y0 = (y0 + (FIXED_ONE-1)) >> FIXED_ORDER;
|
bbox.y0 = (y0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER;
|
||||||
bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER;
|
bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER;
|
||||||
|
|
||||||
/* Inclusive coordinates:
|
/* Inclusive coordinates:
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue