diff options
author | Zack Rusin <zackr@vmware.com> | 2013-07-31 07:34:49 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2013-08-02 20:11:18 -0400 |
commit | d6b3a193d4d525c5048ebf793e6a63fd98f92d64 (patch) | |
tree | 03fa602befb47cfa29efad7bc1c85e1ec645e92a /src/gallium/drivers/llvmpipe/lp_setup_context.h | |
parent | 05487ef88ded5fea0b1de7bc08d44846648d1ce2 (diff) | |
download | external_mesa3d-d6b3a193d4d525c5048ebf793e6a63fd98f92d64.zip external_mesa3d-d6b3a193d4d525c5048ebf793e6a63fd98f92d64.tar.gz external_mesa3d-d6b3a193d4d525c5048ebf793e6a63fd98f92d64.tar.bz2 |
draw: inject frontface info into wireframe outputs
Draw module can decompose primitives into wireframe models, which
is a fancy word for 'lines', unfortunately that decomposition means
that we weren't able to preserve the original front-face info which
could be derived from the original primitives (lines don't have a
'face'). To fix it allow draw module to inject a fake face semantic
into outputs from which the backends can figure out the original
frontfacing info of the primitives.
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_context.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_context.h b/src/gallium/drivers/llvmpipe/lp_setup_context.h index 89c23bb..ea1d0d6 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_context.h +++ b/src/gallium/drivers/llvmpipe/lp_setup_context.h @@ -106,6 +106,7 @@ struct lp_setup_context float psize; unsigned viewport_index_slot; unsigned layer_slot; + unsigned face_slot; struct pipe_framebuffer_state fb; struct u_rect framebuffer; |