diff options
author | George Kyriazis <[email protected]> | 2017-03-31 20:09:57 -0500 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2017-04-14 17:08:12 -0500 |
commit | d7a1f01db36f32f8fbf47535d3969bcb57dae91d (patch) | |
tree | e6d46282268d9fa4dddb487c0286370f26085b25 /src/gallium/drivers/swr/swr_state.h | |
parent | 8973ae3162aec112b22cdf58f47d0ee12c4a09cd (diff) |
swr: Add polygon stipple support
Add polygon stipple functionality to the fragment shader.
Explicitly turn off polygon stipple for lines and points, since we
do them using tris.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_state.h')
-rw-r--r-- | src/gallium/drivers/swr/swr_state.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_state.h b/src/gallium/drivers/swr/swr_state.h index c89e303ba33..9a8c4e1311c 100644 --- a/src/gallium/drivers/swr/swr_state.h +++ b/src/gallium/drivers/swr/swr_state.h @@ -92,6 +92,11 @@ struct swr_blend_state { RENDER_TARGET_BLEND_COMPILE_STATE compileState[PIPE_MAX_COLOR_BUFS]; }; +struct swr_poly_stipple { + struct pipe_poly_stipple pipe; + bool prim_is_poly; +}; + /* * Derived SWR API DrawState * For convenience of making simple changes without re-deriving state. |