summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-03-06 11:17:55 -0800
committerCorbin Simpson <[email protected]>2009-03-06 11:17:55 -0800
commit17331a77f6480183ad0f43173f77d6c73cc377ff (patch)
tree3222f1bcde40f54e93da8f5dee0ee24227b01b64 /src/gallium/drivers/r300/r300_state.c
parentd965c15777727fec34b11c253f2a0f50c4e8e89a (diff)
r300-gallium: Flat/smooth shading state.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r--src/gallium/drivers/r300/r300_state.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index a909ad0341b..04cbf71ce50 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -389,6 +389,12 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
rs->line_stipple_value = state->line_stipple_pattern;
}
+ if (state->flatshade) {
+ rs->color_control = R300_SHADE_MODEL_FLAT;
+ } else {
+ rs->color_control = R300_SHADE_MODEL_SMOOTH;
+ }
+
rs->rs = *state;
return (void*)rs;