gallium: new draw stage for polygon stipple.
authorBrian <brian.paul@tungstengraphics.com>
Thu, 21 Feb 2008 23:56:32 +0000 (16:56 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 21 Feb 2008 23:56:32 +0000 (16:56 -0700)
commit446bfc32a83008e0865ec869bc80b920c907f10f
tree8d19dd335aa2bdbc5dcd51dd91d6f143bad8a662
parenteb4dc2dd5ed62e6ccb55ccc2bc13f6a2f3fc1f76
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.
src/gallium/auxiliary/draw/Makefile
src/gallium/auxiliary/draw/draw_context.h
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pstipple.c [new file with mode: 0644]
src/gallium/auxiliary/draw/draw_validate.c
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_quad.c