mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
llvmpipe: consolidate legacy_points and multisample state
This just makes the code a bit easier to follow. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17653>
This commit is contained in:
parent
a1846e3926
commit
8f99bab70c
2 changed files with 3 additions and 3 deletions
|
|
@ -622,7 +622,7 @@ lp_setup_bind_rasterizer( struct lp_setup_context *setup,
|
|||
setup->sprite_coord_origin = rast->sprite_coord_mode;
|
||||
setup->point_tri_clip = rast->point_size_per_vertex;
|
||||
setup->point_size_per_vertex = rast->point_size_per_vertex;
|
||||
setup->legacy_points = !rast->point_quad_rasterization;
|
||||
setup->legacy_points = !rast->point_quad_rasterization && !setup->multisample;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ try_setup_point( struct lp_setup_context *setup,
|
|||
print_point(setup, v0, size);
|
||||
|
||||
/* Bounding rectangle (in pixels) */
|
||||
if (!setup->legacy_points || setup->multisample) {
|
||||
if (!setup->legacy_points) {
|
||||
/*
|
||||
* Rasterize points as quads.
|
||||
*/
|
||||
|
|
@ -535,7 +535,7 @@ try_setup_point( struct lp_setup_context *setup,
|
|||
plane[3].c = MIN2(y[1], (bbox.y1 + 1) << 8);
|
||||
plane[3].eo = 0;
|
||||
|
||||
if (!setup->legacy_points || setup->multisample) {
|
||||
if (!setup->legacy_points) {
|
||||
/* adjust for fill-rule*/
|
||||
plane[0].c++; /* left */
|
||||
if (setup->bottom_edge_rule == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue