summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/evergreen_state.c
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2012-01-06 08:13:18 +0400
committerDave Airlie <[email protected]>2012-01-15 16:19:41 +0000
commit725a820b926575265e6790601a0defd9c30947dc (patch)
treefb9078fa692ec555f7831b8c70e12dd57eff32bb /src/gallium/drivers/r600/evergreen_state.c
parentd84ab821c5f5bfe9f6a57e434af9ca06d54f45b3 (diff)
r600g: implement two-sided lighting (v3)
v2: select the colors in the pixel shader v3: fix rs state creation for pre-evergreen Signed-off-by: Vadim Girlin <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_state.c')
-rw-r--r--src/gallium/drivers/r600/evergreen_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index dd8b8300a09..59328b959cf 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -906,6 +906,7 @@ static void *evergreen_create_rs_state(struct pipe_context *ctx,
rs->clamp_fragment_color = state->clamp_fragment_color;
rs->flatshade = state->flatshade;
rs->sprite_coord_enable = state->sprite_coord_enable;
+ rs->two_side = state->light_twoside;
clip_rule = state->scissor ? 0xAAAA : 0xFFFF;