blob: 35351fc60801caf32e2722fd32c5beb63f32cd88 [file] [log] [blame]
Jakob Bornecrantz31926332009-11-16 19:56:18 +01001/**********************************************************
2 * Copyright 2008-2009 VMware, Inc. All rights reserved.
3 *
4 * Permission is hereby granted, free of charge, to any person
5 * obtaining a copy of this software and associated documentation
6 * files (the "Software"), to deal in the Software without
7 * restriction, including without limitation the rights to use, copy,
8 * modify, merge, publish, distribute, sublicense, and/or sell copies
9 * of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 *
24 **********************************************************/
25
Jakob Bornecrantz31926332009-11-16 19:56:18 +010026#include "pipe/p_defines.h"
Brian Paule0542512015-08-13 11:00:58 -070027#include "draw/draw_context.h"
28#include "util/u_bitmask.h"
29#include "util/u_inlines.h"
Jakob Bornecrantz31926332009-11-16 19:56:18 +010030#include "util/u_math.h"
31#include "util/u_memory.h"
32
Brian Paule0542512015-08-13 11:00:58 -070033#include "svga_cmd.h"
Jakob Bornecrantz31926332009-11-16 19:56:18 +010034#include "svga_context.h"
Brian Paule0542512015-08-13 11:00:58 -070035#include "svga_hw_reg.h"
Brian Paulccd6bf82013-12-09 10:46:56 -080036#include "svga_screen.h"
Jakob Bornecrantz31926332009-11-16 19:56:18 +010037
Jakob Bornecrantz31926332009-11-16 19:56:18 +010038
39/* Hardware frontwinding is always set up as SVGA3D_FRONTWINDING_CW.
40 */
Brian Paul77e4b412016-04-15 15:58:05 -060041static SVGA3dFace
42svga_translate_cullmode(unsigned mode, unsigned front_ccw)
Jakob Bornecrantz31926332009-11-16 19:56:18 +010043{
Keith Whitwell0bd1cbc2010-05-14 13:04:42 +010044 const int hw_front_ccw = 0; /* hardware is always CW */
Jakob Bornecrantz31926332009-11-16 19:56:18 +010045 switch (mode) {
Keith Whitwell0bd1cbc2010-05-14 13:04:42 +010046 case PIPE_FACE_NONE:
Jakob Bornecrantz31926332009-11-16 19:56:18 +010047 return SVGA3D_FACE_NONE;
Keith Whitwell0bd1cbc2010-05-14 13:04:42 +010048 case PIPE_FACE_FRONT:
49 return front_ccw == hw_front_ccw ? SVGA3D_FACE_FRONT : SVGA3D_FACE_BACK;
50 case PIPE_FACE_BACK:
51 return front_ccw == hw_front_ccw ? SVGA3D_FACE_BACK : SVGA3D_FACE_FRONT;
52 case PIPE_FACE_FRONT_AND_BACK:
Jakob Bornecrantz31926332009-11-16 19:56:18 +010053 return SVGA3D_FACE_FRONT_BACK;
54 default:
55 assert(0);
56 return SVGA3D_FACE_NONE;
57 }
58}
59
Brian Paul77e4b412016-04-15 15:58:05 -060060static SVGA3dShadeMode
61svga_translate_flatshade(unsigned mode)
Jakob Bornecrantz31926332009-11-16 19:56:18 +010062{
63 return mode ? SVGA3D_SHADEMODE_FLAT : SVGA3D_SHADEMODE_SMOOTH;
64}
65
66
Brian Paule0542512015-08-13 11:00:58 -070067static unsigned
68translate_fill_mode(unsigned fill)
69{
70 switch (fill) {
71 case PIPE_POLYGON_MODE_POINT:
72 return SVGA3D_FILLMODE_POINT;
73 case PIPE_POLYGON_MODE_LINE:
74 return SVGA3D_FILLMODE_LINE;
75 case PIPE_POLYGON_MODE_FILL:
76 return SVGA3D_FILLMODE_FILL;
77 default:
78 assert(!"Bad fill mode");
79 return SVGA3D_FILLMODE_FILL;
80 }
81}
82
83
84static unsigned
85translate_cull_mode(unsigned cull)
86{
87 switch (cull) {
88 case PIPE_FACE_NONE:
89 return SVGA3D_CULL_NONE;
90 case PIPE_FACE_FRONT:
91 return SVGA3D_CULL_FRONT;
92 case PIPE_FACE_BACK:
93 return SVGA3D_CULL_BACK;
94 case PIPE_FACE_FRONT_AND_BACK:
95 /* NOTE: we simply no-op polygon drawing in svga_draw_vbo() */
96 return SVGA3D_CULL_NONE;
97 default:
98 assert(!"Bad cull mode");
99 return SVGA3D_CULL_NONE;
100 }
101}
102
103
104static void
105define_rasterizer_object(struct svga_context *svga,
106 struct svga_rasterizer_state *rast)
107{
Brian Paulca531ae2016-05-17 10:44:01 -0600108 struct svga_screen *svgascreen = svga_screen(svga->pipe.screen);
Brian Paule0542512015-08-13 11:00:58 -0700109 unsigned fill_mode = translate_fill_mode(rast->templ.fill_front);
Brian Paul88efaf92016-07-29 09:10:02 -0600110 const unsigned cull_mode = translate_cull_mode(rast->templ.cull_face);
111 const int depth_bias = rast->templ.offset_units;
112 const float slope_scaled_depth_bias = rast->templ.offset_scale;
113 /* PIPE_CAP_POLYGON_OFFSET_CLAMP not supported: */
114 const float depth_bias_clamp = 0.0;
Brian Paule0542512015-08-13 11:00:58 -0700115 const float line_width = rast->templ.line_width > 0.0f ?
116 rast->templ.line_width : 1.0f;
117 const uint8 line_factor = rast->templ.line_stipple_enable ?
118 rast->templ.line_stipple_factor : 0;
119 const uint16 line_pattern = rast->templ.line_stipple_enable ?
120 rast->templ.line_stipple_pattern : 0;
Brian Paul88efaf92016-07-29 09:10:02 -0600121 unsigned try;
Brian Paule0542512015-08-13 11:00:58 -0700122
123 rast->id = util_bitmask_add(svga->rast_object_id_bm);
124
125 if (rast->templ.fill_front != rast->templ.fill_back) {
126 /* The VGPU10 device can't handle different front/back fill modes.
127 * We'll handle that with a swtnl/draw fallback. But we need to
128 * make sure we always fill triangles in that case.
129 */
130 fill_mode = SVGA3D_FILLMODE_FILL;
131 }
132
133 for (try = 0; try < 2; try++) {
Brian Paulca531ae2016-05-17 10:44:01 -0600134 const uint8 pv_last = !rast->templ.flatshade_first &&
135 svgascreen->haveProvokingVertex;
Brian Paule0542512015-08-13 11:00:58 -0700136 enum pipe_error ret =
137 SVGA3D_vgpu10_DefineRasterizerState(svga->swc,
138 rast->id,
139 fill_mode,
140 cull_mode,
141 rast->templ.front_ccw,
142 depth_bias,
143 depth_bias_clamp,
144 slope_scaled_depth_bias,
145 rast->templ.depth_clip,
146 rast->templ.scissor,
147 rast->templ.multisample,
148 rast->templ.line_smooth,
149 line_width,
150 rast->templ.line_stipple_enable,
151 line_factor,
152 line_pattern,
Brian Paulca531ae2016-05-17 10:44:01 -0600153 pv_last);
Brian Paule0542512015-08-13 11:00:58 -0700154 if (ret == PIPE_OK)
155 return;
156 svga_context_flush(svga, NULL);
157 }
158}
159
160
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100161static void *
162svga_create_rasterizer_state(struct pipe_context *pipe,
163 const struct pipe_rasterizer_state *templ)
164{
Jakob Bornecrantzc523f312010-12-29 12:50:59 +0100165 struct svga_context *svga = svga_context(pipe);
Brian Paul77e4b412016-04-15 15:58:05 -0600166 struct svga_rasterizer_state *rast = CALLOC_STRUCT(svga_rasterizer_state);
Brian Paulccd6bf82013-12-09 10:46:56 -0800167 struct svga_screen *screen = svga_screen(pipe->screen);
Jakob Bornecrantzc523f312010-12-29 12:50:59 +0100168
Brian Paul9f443af2016-04-05 09:56:49 -0600169 if (!rast)
170 return NULL;
171
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100172 /* need this for draw module. */
173 rast->templ = *templ;
174
Brian Paul2bd9b382010-12-16 08:50:30 -0700175 /* light_twoside - XXX: need fragment shader variant */
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100176 /* poly_smooth - XXX: no fallback available */
177 /* poly_stipple_enable - draw module */
Roland Scheidegger4a4daa72010-02-03 17:25:14 +0100178 /* sprite_coord_enable - ? */
Roland Scheidegger68f93ea2010-02-04 21:35:28 +0100179 /* point_quad_rasterization - ? */
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100180 /* point_size_per_vertex - ? */
181 /* sprite_coord_mode - ??? */
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100182 /* flatshade_first - handled by index translation */
José Fonseca2737abb2013-04-23 19:40:05 +0100183 /* half_pixel_center - XXX - viewport code */
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100184 /* line_width - draw module */
185 /* fill_cw, fill_ccw - draw module or index translation */
186
Brian Paul77e4b412016-04-15 15:58:05 -0600187 rast->shademode = svga_translate_flatshade(templ->flatshade);
188 rast->cullmode = svga_translate_cullmode(templ->cull_face, templ->front_ccw);
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100189 rast->scissortestenable = templ->scissor;
190 rast->multisampleantialias = templ->multisample;
191 rast->antialiasedlineenable = templ->line_smooth;
192 rast->lastpixel = templ->line_last_pixel;
Brian Paul2f40e4a2011-07-13 10:58:01 -0600193 rast->pointsprite = templ->sprite_coord_enable != 0x0;
Brian Paule0542512015-08-13 11:00:58 -0700194
195 if (templ->point_smooth) {
196 /* For smooth points we need to generate fragments for at least
197 * a 2x2 region. Otherwise the quad we draw may be too small and
198 * we may generate no fragments at all.
199 */
200 rast->pointsize = MAX2(2.0f, templ->point_size);
201 }
202 else {
203 rast->pointsize = templ->point_size;
204 }
205
206 rast->hw_fillmode = PIPE_POLYGON_MODE_FILL;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100207
208 /* Use swtnl + decomposition implement these:
209 */
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100210
Brian Paule0542512015-08-13 11:00:58 -0700211 if (templ->line_width <= screen->maxLineWidth) {
Brian Paulccd6bf82013-12-09 10:46:56 -0800212 /* pass line width to device */
213 rast->linewidth = MAX2(1.0F, templ->line_width);
214 }
215 else if (svga->debug.no_line_width) {
216 /* nothing */
217 }
218 else {
219 /* use 'draw' pipeline for wide line */
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100220 rast->need_pipeline |= SVGA_PIPELINE_FLAG_LINES;
Jakob Bornecrantzc523f312010-12-29 12:50:59 +0100221 rast->need_pipeline_lines_str = "line width";
222 }
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100223
224 if (templ->line_stipple_enable) {
Brian Paulccd6bf82013-12-09 10:46:56 -0800225 if (screen->haveLineStipple || svga->debug.force_hw_line_stipple) {
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100226 SVGA3dLinePattern lp;
227 lp.repeat = templ->line_stipple_factor + 1;
228 lp.pattern = templ->line_stipple_pattern;
229 rast->linepattern = lp.uintValue;
230 }
231 else {
Brian Paulccd6bf82013-12-09 10:46:56 -0800232 /* use 'draw' module to decompose into short line segments */
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100233 rast->need_pipeline |= SVGA_PIPELINE_FLAG_LINES;
Jakob Bornecrantzc523f312010-12-29 12:50:59 +0100234 rast->need_pipeline_lines_str = "line stipple";
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100235 }
236 }
237
Brian Paule0542512015-08-13 11:00:58 -0700238 if (!svga_have_vgpu10(svga) && templ->point_smooth) {
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100239 rast->need_pipeline |= SVGA_PIPELINE_FLAG_POINTS;
Jakob Bornecrantzc523f312010-12-29 12:50:59 +0100240 rast->need_pipeline_points_str = "smooth points";
241 }
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100242
Brian Paulccd6bf82013-12-09 10:46:56 -0800243 if (templ->line_smooth && !screen->haveLineSmooth) {
244 /*
245 * XXX: Enabling the pipeline slows down performance immensely, so ignore
246 * line smooth state, where there is very little visual improvement.
247 * Smooth lines will still be drawn for wide lines.
248 */
249#if 0
José Fonseca6ed0f2a2011-02-11 11:22:02 +0000250 rast->need_pipeline |= SVGA_PIPELINE_FLAG_LINES;
251 rast->need_pipeline_lines_str = "smooth lines";
Brian Paulccd6bf82013-12-09 10:46:56 -0800252#endif
José Fonseca6ed0f2a2011-02-11 11:22:02 +0000253 }
254
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100255 {
Keith Whitwell9c264642010-05-14 19:20:25 +0100256 int fill_front = templ->fill_front;
257 int fill_back = templ->fill_back;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100258 int fill = PIPE_POLYGON_MODE_FILL;
Keith Whitwell9c264642010-05-14 19:20:25 +0100259 boolean offset_front = util_get_offset(templ, fill_front);
260 boolean offset_back = util_get_offset(templ, fill_back);
Brian Paul17371892013-10-11 09:20:56 -0600261 boolean offset = FALSE;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100262
Keith Whitwell0bd1cbc2010-05-14 13:04:42 +0100263 switch (templ->cull_face) {
264 case PIPE_FACE_FRONT_AND_BACK:
Brian Paul17371892013-10-11 09:20:56 -0600265 offset = FALSE;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100266 fill = PIPE_POLYGON_MODE_FILL;
267 break;
268
Keith Whitwell0bd1cbc2010-05-14 13:04:42 +0100269 case PIPE_FACE_FRONT:
270 offset = offset_front;
271 fill = fill_front;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100272 break;
273
Keith Whitwell0bd1cbc2010-05-14 13:04:42 +0100274 case PIPE_FACE_BACK:
275 offset = offset_back;
276 fill = fill_back;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100277 break;
278
Keith Whitwell0bd1cbc2010-05-14 13:04:42 +0100279 case PIPE_FACE_NONE:
280 if (fill_front != fill_back || offset_front != offset_back)
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100281 {
282 /* Always need the draw module to work out different
283 * front/back fill modes:
284 */
285 rast->need_pipeline |= SVGA_PIPELINE_FLAG_TRIS;
Jakob Bornecrantzc523f312010-12-29 12:50:59 +0100286 rast->need_pipeline_tris_str = "different front/back fillmodes";
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100287 }
288 else {
Keith Whitwell0bd1cbc2010-05-14 13:04:42 +0100289 offset = offset_front;
290 fill = fill_front;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100291 }
292 break;
293
294 default:
295 assert(0);
296 break;
297 }
298
299 /* Unfilled primitive modes aren't implemented on all virtual
300 * hardware. We can do some unfilled processing with index
301 * translation, but otherwise need the draw module:
302 */
303 if (fill != PIPE_POLYGON_MODE_FILL &&
304 (templ->flatshade ||
305 templ->light_twoside ||
306 offset ||
Keith Whitwell0bd1cbc2010-05-14 13:04:42 +0100307 templ->cull_face != PIPE_FACE_NONE))
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100308 {
309 fill = PIPE_POLYGON_MODE_FILL;
310 rast->need_pipeline |= SVGA_PIPELINE_FLAG_TRIS;
Jakob Bornecrantzc523f312010-12-29 12:50:59 +0100311 rast->need_pipeline_tris_str = "unfilled primitives with no index manipulation";
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100312 }
313
314 /* If we are decomposing to lines, and lines need the pipeline,
315 * then we also need the pipeline for tris.
316 */
317 if (fill == PIPE_POLYGON_MODE_LINE &&
318 (rast->need_pipeline & SVGA_PIPELINE_FLAG_LINES))
319 {
320 fill = PIPE_POLYGON_MODE_FILL;
321 rast->need_pipeline |= SVGA_PIPELINE_FLAG_TRIS;
Jakob Bornecrantzc523f312010-12-29 12:50:59 +0100322 rast->need_pipeline_tris_str = "decomposing lines";
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100323 }
324
325 /* Similarly for points:
326 */
327 if (fill == PIPE_POLYGON_MODE_POINT &&
328 (rast->need_pipeline & SVGA_PIPELINE_FLAG_POINTS))
329 {
330 fill = PIPE_POLYGON_MODE_FILL;
331 rast->need_pipeline |= SVGA_PIPELINE_FLAG_TRIS;
Jakob Bornecrantzc523f312010-12-29 12:50:59 +0100332 rast->need_pipeline_tris_str = "decomposing points";
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100333 }
334
335 if (offset) {
336 rast->slopescaledepthbias = templ->offset_scale;
337 rast->depthbias = templ->offset_units;
338 }
339
Brian Paule0542512015-08-13 11:00:58 -0700340 rast->hw_fillmode = fill;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100341 }
342
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100343 if (rast->need_pipeline & SVGA_PIPELINE_FLAG_TRIS) {
344 /* Turn off stuff which will get done in the draw module:
345 */
Brian Paule0542512015-08-13 11:00:58 -0700346 rast->hw_fillmode = PIPE_POLYGON_MODE_FILL;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100347 rast->slopescaledepthbias = 0;
348 rast->depthbias = 0;
349 }
350
Brian Paulccd6bf82013-12-09 10:46:56 -0800351 if (0 && rast->need_pipeline) {
352 debug_printf("svga: rast need_pipeline = 0x%x\n", rast->need_pipeline);
353 debug_printf(" pnts: %s \n", rast->need_pipeline_points_str);
354 debug_printf(" lins: %s \n", rast->need_pipeline_lines_str);
355 debug_printf(" tris: %s \n", rast->need_pipeline_tris_str);
356 }
357
Brian Paule0542512015-08-13 11:00:58 -0700358 if (svga_have_vgpu10(svga)) {
359 define_rasterizer_object(svga, rast);
360 }
361
Brian Paul32a6e082015-12-04 12:26:35 -0700362 if (templ->poly_smooth) {
363 pipe_debug_message(&svga->debug.callback, CONFORMANCE,
364 "GL_POLYGON_SMOOTH not supported");
365 }
366
Brian Paul464d6082016-04-15 15:30:34 -0600367 svga->hud.num_rasterizer_objects++;
Charmaine Lee2e1cfcc2016-08-19 08:49:17 -0600368 SVGA_STATS_COUNT_INC(svga_screen(svga->pipe.screen)->sws,
369 SVGA_STATS_COUNT_RASTERIZERSTATE);
Neha Bhende9bc7e312015-10-09 16:10:16 -0600370
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100371 return rast;
372}
373
Brian Paul77e4b412016-04-15 15:58:05 -0600374
375static void
376svga_bind_rasterizer_state(struct pipe_context *pipe, void *state)
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100377{
378 struct svga_context *svga = svga_context(pipe);
379 struct svga_rasterizer_state *raster = (struct svga_rasterizer_state *)state;
380
Charmaine Leeb4c4ee02017-04-04 12:47:49 -0600381 if (!raster || !svga->curr.rast) {
382 svga->dirty |= SVGA_NEW_STIPPLE | SVGA_NEW_DEPTH_STENCIL_ALPHA;
383 }
384 else {
385 if (raster->templ.poly_stipple_enable !=
386 svga->curr.rast->templ.poly_stipple_enable) {
387 svga->dirty |= SVGA_NEW_STIPPLE;
388 }
389 if (raster->templ.rasterizer_discard !=
390 svga->curr.rast->templ.rasterizer_discard) {
391 svga->dirty |= SVGA_NEW_DEPTH_STENCIL_ALPHA;
392 }
Brian Pauleec8d7e2016-01-05 13:03:04 -0700393 }
394
Zack Rusin831de962012-03-02 20:13:38 -0500395 svga->curr.rast = raster;
396
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100397 svga->dirty |= SVGA_NEW_RAST;
398}
399
Brian Paul77e4b412016-04-15 15:58:05 -0600400
Brian Paule0542512015-08-13 11:00:58 -0700401static void
402svga_delete_rasterizer_state(struct pipe_context *pipe, void *state)
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100403{
Brian Paule0542512015-08-13 11:00:58 -0700404 struct svga_context *svga = svga_context(pipe);
405 struct svga_rasterizer_state *raster =
406 (struct svga_rasterizer_state *) state;
407
408 if (svga_have_vgpu10(svga)) {
409 enum pipe_error ret =
410 SVGA3D_vgpu10_DestroyRasterizerState(svga->swc, raster->id);
411 if (ret != PIPE_OK) {
412 svga_context_flush(svga, NULL);
413 ret = SVGA3D_vgpu10_DestroyRasterizerState(svga->swc, raster->id);
414 }
415
416 if (raster->id == svga->state.hw_draw.rasterizer_id)
417 svga->state.hw_draw.rasterizer_id = SVGA3D_INVALID_ID;
418
419 util_bitmask_clear(svga->rast_object_id_bm, raster->id);
420 }
421
422 FREE(state);
Brian Paul464d6082016-04-15 15:30:34 -0600423 svga->hud.num_rasterizer_objects--;
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100424}
425
426
Brian Paul77e4b412016-04-15 15:58:05 -0600427void
428svga_init_rasterizer_functions(struct svga_context *svga)
Jakob Bornecrantz31926332009-11-16 19:56:18 +0100429{
430 svga->pipe.create_rasterizer_state = svga_create_rasterizer_state;
431 svga->pipe.bind_rasterizer_state = svga_bind_rasterizer_state;
432 svga->pipe.delete_rasterizer_state = svga_delete_rasterizer_state;
433}