summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_context.h
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2017-03-31 20:09:57 -0500
committerGeorge Kyriazis <[email protected]>2017-04-14 17:08:12 -0500
commitd7a1f01db36f32f8fbf47535d3969bcb57dae91d (patch)
treee6d46282268d9fa4dddb487c0286370f26085b25 /src/gallium/drivers/swr/swr_context.h
parent8973ae3162aec112b22cdf58f47d0ee12c4a09cd (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_context.h')
-rw-r--r--src/gallium/drivers/swr/swr_context.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_context.h b/src/gallium/drivers/swr/swr_context.h
index 233d95ab167..4de20c1c1b1 100644
--- a/src/gallium/drivers/swr/swr_context.h
+++ b/src/gallium/drivers/swr/swr_context.h
@@ -98,6 +98,8 @@ struct swr_draw_context {
float userClipPlanes[PIPE_MAX_CLIP_PLANES][4];
+ uint32_t polyStipple[32];
+
SWR_SURFACE_STATE renderTargets[SWR_NUM_ATTACHMENTS];
void *pStats;
};
@@ -127,7 +129,7 @@ struct swr_context {
struct pipe_constant_buffer
constants[PIPE_SHADER_TYPES][PIPE_MAX_CONSTANT_BUFFERS];
struct pipe_framebuffer_state framebuffer;
- struct pipe_poly_stipple poly_stipple;
+ struct swr_poly_stipple poly_stipple;
struct pipe_scissor_state scissor;
SWR_RECT swr_scissor;
struct pipe_sampler_view *