mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
llvmpipe: plumb multisample state bit into setup code.
Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>
This commit is contained in:
parent
e47d39aee1
commit
f5463576b9
4 changed files with 8 additions and 3 deletions
|
|
@ -567,13 +567,15 @@ lp_setup_set_triangle_state( struct lp_setup_context *setup,
|
|||
boolean ccw_is_frontface,
|
||||
boolean scissor,
|
||||
boolean half_pixel_center,
|
||||
boolean bottom_edge_rule)
|
||||
boolean bottom_edge_rule,
|
||||
boolean multisample)
|
||||
{
|
||||
LP_DBG(DEBUG_SETUP, "%s\n", __FUNCTION__);
|
||||
|
||||
setup->ccw_is_frontface = ccw_is_frontface;
|
||||
setup->cullmode = cull_mode;
|
||||
setup->triangle = first_triangle;
|
||||
setup->multisample = multisample;
|
||||
setup->pixel_offset = half_pixel_center ? 0.5f : 0.0f;
|
||||
setup->bottom_edge_rule = bottom_edge_rule;
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,8 @@ lp_setup_set_triangle_state( struct lp_setup_context *setup,
|
|||
boolean front_is_ccw,
|
||||
boolean scissor,
|
||||
boolean half_pixel_center,
|
||||
boolean bottom_edge_rule);
|
||||
boolean bottom_edge_rule,
|
||||
boolean multisample);
|
||||
|
||||
void
|
||||
lp_setup_set_line_state( struct lp_setup_context *setup,
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ struct lp_setup_context
|
|||
boolean scissor_test;
|
||||
boolean point_size_per_vertex;
|
||||
boolean rasterizer_discard;
|
||||
boolean multisample;
|
||||
unsigned cullmode;
|
||||
unsigned bottom_edge_rule;
|
||||
float pixel_offset;
|
||||
|
|
|
|||
|
|
@ -116,7 +116,8 @@ llvmpipe_bind_rasterizer_state(struct pipe_context *pipe, void *handle)
|
|||
state->lp_state.front_ccw,
|
||||
state->lp_state.scissor,
|
||||
state->lp_state.half_pixel_center,
|
||||
state->lp_state.bottom_edge_rule);
|
||||
state->lp_state.bottom_edge_rule,
|
||||
state->lp_state.multisample);
|
||||
lp_setup_set_flatshade_first( llvmpipe->setup,
|
||||
state->lp_state.flatshade_first);
|
||||
lp_setup_set_line_state( llvmpipe->setup,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue