mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 18:40:42 +01:00
gallium: pipe_rasterizer_state::point_tri_clip -> point_line_tri_clip
this is just a rename, no functional changes Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17284>
This commit is contained in:
parent
04b3369921
commit
ea98df2a65
8 changed files with 10 additions and 10 deletions
|
|
@ -285,7 +285,7 @@ draw_update_clip_flags(struct draw_context *draw)
|
|||
draw->guard_band_points_xy = draw->guard_band_xy ||
|
||||
(draw->driver.bypass_clip_points &&
|
||||
(draw->rasterizer &&
|
||||
draw->rasterizer->point_tri_clip));
|
||||
draw->rasterizer->point_line_tri_clip));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ util_dump_rasterizer_state(FILE *stream, const struct pipe_rasterizer_state *sta
|
|||
util_dump_member(stream, uint, state, sprite_coord_enable);
|
||||
util_dump_member(stream, bool, state, sprite_coord_mode);
|
||||
util_dump_member(stream, bool, state, point_quad_rasterization);
|
||||
util_dump_member(stream, bool, state, point_tri_clip);
|
||||
util_dump_member(stream, bool, state, point_line_tri_clip);
|
||||
util_dump_member(stream, bool, state, point_size_per_vertex);
|
||||
util_dump_member(stream, bool, state, multisample);
|
||||
util_dump_member(stream, bool, state, line_smooth);
|
||||
|
|
|
|||
|
|
@ -599,7 +599,7 @@ lp_setup_bind_rasterizer(struct lp_setup_context *setup,
|
|||
setup->point_size = rast->point_size;
|
||||
setup->sprite_coord_enable = rast->sprite_coord_enable;
|
||||
setup->sprite_coord_origin = rast->sprite_coord_mode;
|
||||
setup->point_tri_clip = rast->point_tri_clip;
|
||||
setup->point_line_tri_clip = rast->point_line_tri_clip;
|
||||
setup->point_size_per_vertex = rast->point_size_per_vertex;
|
||||
setup->legacy_points = !rast->point_quad_rasterization && !setup->multisample;
|
||||
}
|
||||
|
|
@ -1386,7 +1386,7 @@ try_update_scene_state(struct lp_setup_context *setup)
|
|||
u_rect_possible_intersection(&setup->vpwh,
|
||||
&setup->draw_regions[0]);
|
||||
}
|
||||
} else if (setup->point_tri_clip) {
|
||||
} else if (setup->point_line_tri_clip) {
|
||||
/*
|
||||
* for d3d-style point clipping, we're going to need
|
||||
* the fake vp scissor too. Hence do the intersection with vp,
|
||||
|
|
@ -1396,7 +1396,7 @@ try_update_scene_state(struct lp_setup_context *setup)
|
|||
* points are always single pixel).
|
||||
* (Also note that if we have permit_linear_rasterizer this will
|
||||
* cause large points to always get vp scissored, regardless the
|
||||
* point_tri_clip setting.)
|
||||
* point_line_tri_clip setting.)
|
||||
*/
|
||||
boolean need_vp_scissoring =
|
||||
!!memcmp(&setup->vpwh, &setup->framebuffer,
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ struct lp_setup_context
|
|||
unsigned flatshade_first:1;
|
||||
unsigned ccw_is_frontface:1;
|
||||
unsigned scissor_test:1;
|
||||
unsigned point_tri_clip:1;
|
||||
unsigned point_line_tri_clip:1;
|
||||
unsigned point_size_per_vertex:1;
|
||||
unsigned legacy_points:1;
|
||||
unsigned rasterizer_discard:1;
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ CreateRasterizerState(
|
|||
|
||||
state.point_quad_rasterization = 1;
|
||||
state.point_size = 1.0f;
|
||||
state.point_tri_clip = 1;
|
||||
state.point_line_tri_clip = 1;
|
||||
|
||||
state.line_width = 1.0f;
|
||||
state.line_rectangular = 0;
|
||||
|
|
|
|||
|
|
@ -4545,7 +4545,7 @@ VkResult lvp_execute_cmds(struct lvp_device *device,
|
|||
state->dsa_dirty = true;
|
||||
state->rs_dirty = true;
|
||||
state->vp_dirty = true;
|
||||
state->rs_state.point_tri_clip = true;
|
||||
state->rs_state.point_line_tri_clip = true;
|
||||
state->rs_state.unclamped_fragment_depth_values = device->vk.enabled_extensions.EXT_depth_range_unrestricted;
|
||||
state->sample_mask_dirty = true;
|
||||
state->min_samples_dirty = true;
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ struct pipe_rasterizer_state
|
|||
unsigned point_smooth:1;
|
||||
unsigned sprite_coord_mode:1; /**< PIPE_SPRITE_COORD_ */
|
||||
unsigned point_quad_rasterization:1; /** points rasterized as quads or points */
|
||||
unsigned point_tri_clip:1; /** large points clipped as tris or points */
|
||||
unsigned point_line_tri_clip:1; /** large points/lines clipped as tris or points/lines */
|
||||
unsigned point_size_per_vertex:1; /**< size computed in vertex shader */
|
||||
unsigned multisample:1; /* XXX maybe more ms state in future */
|
||||
unsigned no_ms_sample_mask_out:1;
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ st_update_rasterizer(struct st_context *st)
|
|||
|
||||
raster->point_quad_rasterization = 1;
|
||||
|
||||
raster->point_tri_clip = _mesa_is_gles2(st->ctx);
|
||||
raster->point_line_tri_clip = _mesa_is_gles2(st->ctx);
|
||||
}
|
||||
|
||||
/* ST_NEW_VERTEX_PROGRAM
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue