X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fsvga%2Fsvga_pipe_rasterizer.c;h=70d89f5cc639b421af8e9f32f2dae0bbd95f3eee;hb=59f14563a306b33171ea2d8fa73aa3a4363761a3;hp=569fbe16f677fb9aa3ac15cc2b59a0fe95fa3371;hpb=ca531aeeb120cdda966120a17cdf50aa14c3129b;p=mesa.git diff --git a/src/gallium/drivers/svga/svga_pipe_rasterizer.c b/src/gallium/drivers/svga/svga_pipe_rasterizer.c index 569fbe16f67..70d89f5cc63 100644 --- a/src/gallium/drivers/svga/svga_pipe_rasterizer.c +++ b/src/gallium/drivers/svga/svga_pipe_rasterizer.c @@ -107,17 +107,18 @@ define_rasterizer_object(struct svga_context *svga, { struct svga_screen *svgascreen = svga_screen(svga->pipe.screen); unsigned fill_mode = translate_fill_mode(rast->templ.fill_front); - unsigned cull_mode = translate_cull_mode(rast->templ.cull_face); - int depth_bias = rast->templ.offset_units; - float slope_scaled_depth_bias = rast->templ.offset_scale; - float depth_bias_clamp = 0.0; /* XXX fix me */ - unsigned try; + const unsigned cull_mode = translate_cull_mode(rast->templ.cull_face); + const int depth_bias = rast->templ.offset_units; + const float slope_scaled_depth_bias = rast->templ.offset_scale; + /* PIPE_CAP_POLYGON_OFFSET_CLAMP not supported: */ + const float depth_bias_clamp = 0.0; const float line_width = rast->templ.line_width > 0.0f ? rast->templ.line_width : 1.0f; const uint8 line_factor = rast->templ.line_stipple_enable ? rast->templ.line_stipple_factor : 0; const uint16 line_pattern = rast->templ.line_stipple_enable ? rast->templ.line_stipple_pattern : 0; + unsigned try; rast->id = util_bitmask_add(svga->rast_object_id_bm); @@ -364,6 +365,8 @@ svga_create_rasterizer_state(struct pipe_context *pipe, } svga->hud.num_rasterizer_objects++; + SVGA_STATS_COUNT_INC(svga_screen(svga->pipe.screen)->sws, + SVGA_STATS_COUNT_RASTERIZERSTATE); return rast; }