summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-07-29 09:10:02 -0600
committerBrian Paul <brianp@vmware.com>2016-08-16 08:24:52 -0600
commit88efaf987823802926c211401c401081a0e2f17a (patch)
tree6a935cc8097947462816490dfbf012b6e01a84ed
parentce9c05a5934ae7ded58ee79b8acbdb6a16589e0d (diff)
svga: minor clean-ups in define_rasterizer_object()
Add const qualifiers, new comment. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
-rw-r--r--src/gallium/drivers/svga/svga_pipe_rasterizer.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_rasterizer.c b/src/gallium/drivers/svga/svga_pipe_rasterizer.c
index 569fbe16f67..ce566efc513 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);