summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_state.c
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-08-15 10:15:40 +0200
committerLuca Barbieri <[email protected]>2010-08-21 20:42:14 +0200
commit0d74956a1f895303a44bddc6f92c246ecce40023 (patch)
treec594fd5f8cb460ef92c4e16cb63e0fc80e1fddd7 /src/gallium/drivers/nvfx/nvfx_state.c
parent0184e298636370865bb8d511ca890acd70c1c4c6 (diff)
nvfx: support flatshade_first
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_state.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_state.c b/src/gallium/drivers/nvfx/nvfx_state.c
index c3addf1114f..f529fb2a276 100644
--- a/src/gallium/drivers/nvfx/nvfx_state.c
+++ b/src/gallium/drivers/nvfx/nvfx_state.c
@@ -151,6 +151,9 @@ nvfx_rasterizer_state_create(struct pipe_context *pipe,
sb_data(sb, fui(cso->offset_units * 2));
}
+ sb_method(sb, NV34TCL_FLATSHADE_FIRST, 1);
+ sb_data(sb, cso->flatshade_first);
+
rsso->pipe = *cso;
rsso->sb_len = sb_len(sb, rsso->sb);
return (void *)rsso;