Lines Matching refs:so
36 const struct pipe_rasterizer_state *so) in etna_rasterizer_state_create() argument
41 if (so->fill_front != so->fill_back) in etna_rasterizer_state_create()
48 cs->base = *so; in etna_rasterizer_state_create()
50 …cs->PA_CONFIG = (so->flatshade ? VIVS_PA_CONFIG_SHADE_MODEL_FLAT : VIVS_PA_CONFIG_SHADE_MODEL_SMOO… in etna_rasterizer_state_create()
51 translate_cull_face(so->cull_face, so->front_ccw) | in etna_rasterizer_state_create()
52 translate_polygon_mode(so->fill_front) | in etna_rasterizer_state_create()
53 COND(so->point_quad_rasterization, VIVS_PA_CONFIG_POINT_SPRITE_ENABLE) | in etna_rasterizer_state_create()
54 COND(so->point_size_per_vertex, VIVS_PA_CONFIG_POINT_SIZE_ENABLE) | in etna_rasterizer_state_create()
56 cs->PA_LINE_WIDTH = fui(so->line_width / 2.0f); in etna_rasterizer_state_create()
57 cs->PA_POINT_SIZE = fui(so->point_size / 2.0f); in etna_rasterizer_state_create()
58 cs->SE_DEPTH_SCALE = fui(so->offset_scale); in etna_rasterizer_state_create()
59 cs->SE_DEPTH_BIAS = fui(so->offset_units) / 65535.0f; in etna_rasterizer_state_create()
60 cs->SE_CONFIG = COND(so->line_last_pixel, VIVS_SE_CONFIG_LAST_PIXEL_ENABLE); in etna_rasterizer_state_create()
64 COND(!so->flatshade_first, VIVS_PA_SYSTEM_MODE_PROVOKING_VERTEX_LAST) | in etna_rasterizer_state_create()
65 COND(so->half_pixel_center, VIVS_PA_SYSTEM_MODE_HALF_PIXEL_CENTER); in etna_rasterizer_state_create()
69 cs->scissor = so->scissor; in etna_rasterizer_state_create()
72 cs->point_size_per_vertex = so->point_size_per_vertex; in etna_rasterizer_state_create()
74 assert(!so->clip_halfz); /* could be supported with shader magic, actually in etna_rasterizer_state_create()