mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02: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 =
|
sf.LineEndCapAntialiasingRegionWidth =
|
||||||
state->line_smooth ? _10pixels : _05pixels;
|
state->line_smooth ? _10pixels : _05pixels;
|
||||||
sf.LastPixelEnable = state->line_last_pixel;
|
sf.LastPixelEnable = state->line_last_pixel;
|
||||||
|
#if GFX_VER <= 7
|
||||||
|
sf.AntialiasingEnable = state->line_smooth;
|
||||||
|
#endif
|
||||||
#if GFX_VER == 8
|
#if GFX_VER == 8
|
||||||
struct crocus_screen *screen = (struct crocus_screen *)ctx->screen;
|
struct crocus_screen *screen = (struct crocus_screen *)ctx->screen;
|
||||||
if (screen->devinfo.is_cherryview)
|
if (screen->devinfo.is_cherryview)
|
||||||
|
|
@ -7037,11 +7040,15 @@ crocus_upload_dirty_render_state(struct crocus_context *ice,
|
||||||
sf.DestinationOriginHorizontalBias = 0.5;
|
sf.DestinationOriginHorizontalBias = 0.5;
|
||||||
sf.DestinationOriginVerticalBias = 0.5;
|
sf.DestinationOriginVerticalBias = 0.5;
|
||||||
|
|
||||||
|
sf.LineEndCapAntialiasingRegionWidth =
|
||||||
|
cso_state->line_smooth ? _10pixels : _05pixels;
|
||||||
sf.LastPixelEnable = cso_state->line_last_pixel;
|
sf.LastPixelEnable = cso_state->line_last_pixel;
|
||||||
|
sf.AntialiasingEnable = cso_state->line_smooth;
|
||||||
|
|
||||||
sf.LineWidth = get_line_width(cso_state);
|
sf.LineWidth = get_line_width(cso_state);
|
||||||
sf.PointWidth = cso_state->point_size;
|
sf.PointWidth = cso_state->point_size;
|
||||||
sf.PointWidthSource = cso_state->point_size_per_vertex ? Vertex : State;
|
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;
|
sf.AALineDistanceMode = AALINEDISTANCE_TRUE;
|
||||||
#endif
|
#endif
|
||||||
sf.ViewportTransformEnable = true;
|
sf.ViewportTransformEnable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue