Lines Matching defs:rast

80     struct pipe_rasterizer_state rast;
82 memset(&rast, 0, sizeof(rast));
84 rast.flatshade = rs[D3DRS_SHADEMODE] == D3DSHADE_FLAT;
85 /* rast.light_twoside = 0; */
86 /* rast.clamp_fragment_color = 0; */
87 /* rast.clamp_vertex_color = 0; */
88 /* rast.front_ccw = 0; */
89 rast.cull_face = d3dcull_to_pipe_face(rs[D3DRS_CULLMODE]);
90 rast.fill_front = d3dfillmode_to_pipe_polygon_mode(rs[D3DRS_FILLMODE]);
91 rast.fill_back = rast.fill_front;
92 rast.offset_tri = !!(rs[D3DRS_DEPTHBIAS] | rs[D3DRS_SLOPESCALEDEPTHBIAS]);
93 rast.offset_line = rast.offset_tri; /* triangles in wireframe mode */
94 rast.offset_point = 0; /* XXX ? */
95 rast.scissor = !!rs[D3DRS_SCISSORTESTENABLE];
96 /* rast.poly_smooth = 0; */
97 /* rast.poly_stipple_enable = 0; */
98 /* rast.point_smooth = 0; */
99 rast.sprite_coord_mode = PIPE_SPRITE_COORD_UPPER_LEFT;
100 rast.point_quad_rasterization = 1;
101 rast.point_size_per_vertex = rs[NINED3DRS_VSPOINTSIZE];
102 rast.multisample = rs[NINED3DRS_MULTISAMPLE];
103 rast.line_smooth = !!rs[D3DRS_ANTIALIASEDLINEENABLE];
104 /* rast.line_stipple_enable = 0; */
105 rast.line_last_pixel = !!rs[D3DRS_LASTPIXEL];
106 rast.flatshade_first = 1;
107 /* rast.half_pixel_center = 0; */
108 /* rast.lower_left_origin = 0; */
109 /* rast.bottom_edge_rule = 0; */
110 /* rast.rasterizer_discard = 0; */
111 rast.depth_clip_near = 1;
112 rast.depth_clip_far = 1;
113 rast.clip_halfz = 1;
114 rast.clip_plane_enable = rs[D3DRS_CLIPPLANEENABLE];
115 /* rast.line_stipple_factor = 0; */
116 /* rast.line_stipple_pattern = 0; */
117 rast.sprite_coord_enable = rs[D3DRS_POINTSPRITEENABLE] ? 0xff : 0x00;
118 rast.line_width = 1.0f;
119 rast.line_rectangular = 0;
121 rast.point_size = 1.0f;
123 rast.point_size = CLAMP(asfloat(rs[D3DRS_POINTSIZE]),
134 rast.offset_units = asfloat(rs[D3DRS_DEPTHBIAS]) * (device->driver_caps.offset_units_unscaled ? 1.0f : (float)(1 << 23));
135 rast.offset_units_unscaled = device->driver_caps.offset_units_unscaled;
136 rast.offset_scale = asfloat(rs[D3DRS_SLOPESCALEDEPTHBIAS]);
137 /* rast.offset_clamp = 0.0f; */
139 *rast_state = rast;