Lines Matching defs:so
9 * Software is furnished to do so, subject to the following conditions:
36 const struct pipe_rasterizer_state *so)
41 if (so->fill_front != so->fill_back)
48 cs->base = *so;
50 cs->PA_CONFIG = (so->flatshade ? VIVS_PA_CONFIG_SHADE_MODEL_FLAT : VIVS_PA_CONFIG_SHADE_MODEL_SMOOTH) |
51 translate_cull_face(so->cull_face, so->front_ccw) |
52 translate_polygon_mode(so->fill_front) |
53 COND(so->point_quad_rasterization, VIVS_PA_CONFIG_POINT_SPRITE_ENABLE) |
54 COND(so->point_size_per_vertex, VIVS_PA_CONFIG_POINT_SIZE_ENABLE) |
56 cs->PA_LINE_WIDTH = fui(so->line_width / 2.0f);
57 cs->PA_POINT_SIZE = fui(so->point_size / 2.0f);
58 cs->SE_DEPTH_SCALE = fui(so->offset_scale);
59 cs->SE_DEPTH_BIAS = fui((so->offset_units / 65535.0f) * 2.0f);
60 cs->SE_CONFIG = COND(so->line_last_pixel, VIVS_SE_CONFIG_LAST_PIXEL_ENABLE);
64 COND(!so->flatshade_first, VIVS_PA_SYSTEM_MODE_PROVOKING_VERTEX_LAST) |
65 COND(so->half_pixel_center, VIVS_PA_SYSTEM_MODE_HALF_PIXEL_CENTER);
67 /* so->scissor overrides the scissor, defaulting to the whole framebuffer,
69 cs->scissor = so->scissor;
72 cs->point_size_per_vertex = so->point_size_per_vertex;
74 assert(!so->clip_halfz); /* could be supported with shader magic, actually