mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
crocus: add missing line smooth bits.
Just noticed this in passing.
Fixes: f3630548f1 ("crocus: initial gallium driver for Intel gfx 4-7")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12536>
This commit is contained in:
parent
560dc4f790
commit
6b7a68b7c2
1 changed files with 8 additions and 1 deletions
|
|
@ -2026,6 +2026,9 @@ crocus_create_rasterizer_state(struct pipe_context *ctx,
|
|||
sf.LineEndCapAntialiasingRegionWidth =
|
||||
state->line_smooth ? _10pixels : _05pixels;
|
||||
sf.LastPixelEnable = state->line_last_pixel;
|
||||
#if GFX_VER <= 7
|
||||
sf.AntialiasingEnable = state->line_smooth;
|
||||
#endif
|
||||
#if GFX_VER == 8
|
||||
struct crocus_screen *screen = (struct crocus_screen *)ctx->screen;
|
||||
if (screen->devinfo.is_cherryview)
|
||||
|
|
@ -7037,11 +7040,15 @@ crocus_upload_dirty_render_state(struct crocus_context *ice,
|
|||
sf.DestinationOriginHorizontalBias = 0.5;
|
||||
sf.DestinationOriginVerticalBias = 0.5;
|
||||
|
||||
sf.LineEndCapAntialiasingRegionWidth =
|
||||
cso_state->line_smooth ? _10pixels : _05pixels;
|
||||
sf.LastPixelEnable = cso_state->line_last_pixel;
|
||||
sf.AntialiasingEnable = cso_state->line_smooth;
|
||||
|
||||
sf.LineWidth = get_line_width(cso_state);
|
||||
sf.PointWidth = cso_state->point_size;
|
||||
sf.PointWidthSource = cso_state->point_size_per_vertex ? Vertex : State;
|
||||
#if GFX_VERx10 == 45 || GFX_VER >= 5
|
||||
#if GFX_VERx10 >= 45
|
||||
sf.AALineDistanceMode = AALINEDISTANCE_TRUE;
|
||||
#endif
|
||||
sf.ViewportTransformEnable = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue