diff options
author | Brian <[email protected]> | 2008-02-21 16:56:32 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-21 16:56:32 -0700 |
commit | 446bfc32a83008e0865ec869bc80b920c907f10f (patch) | |
tree | 8d19dd335aa2bdbc5dcd51dd91d6f143bad8a662 /src/gallium/drivers/softpipe/sp_quad.c | |
parent | eb4dc2dd5ed62e6ccb55ccc2bc13f6a2f3fc1f76 (diff) |
gallium: new draw stage for polygon stipple.
For hardware without native polygon stipple. Create a 32x32 alpha texture
that encodes the stipple pattern. Modify the user's fragment program to
sample the texture (with gl_FragCoord) and kill the fragment according to
the texel value.
Temporarily enabled in softpipe driver, replacing the sp_quad_stipple.c step.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_quad.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_quad.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_quad.c b/src/gallium/drivers/softpipe/sp_quad.c index 6bd468a51cf..15b5594547d 100644 --- a/src/gallium/drivers/softpipe/sp_quad.c +++ b/src/gallium/drivers/softpipe/sp_quad.c @@ -112,7 +112,9 @@ sp_build_quad_pipeline(struct softpipe_context *sp) sp_push_quad_first( sp, sp->quad.earlyz ); } +#if !USE_DRAW_STAGE_PSTIPPLE if (sp->rasterizer->poly_stipple_enable) { sp_push_quad_first( sp, sp->quad.polygon_stipple ); } +#endif } |