aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_state.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-09-24 15:42:46 +0200
committerChristoph Bumiller <[email protected]>2011-09-28 16:28:58 +0200
commitb3fa0d311e553ec815d58e58a30aa8b3927e4afd (patch)
tree1702e03862cfbabaed9e5b2df60019f16f58bc67 /src/gallium/drivers/nvc0/nvc0_state.c
parente92348b7f5ee2565371dd779f25cc0ede8724886 (diff)
nv50,nvc0: support polygon offset clamp state
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_state.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_state.c b/src/gallium/drivers/nvc0/nvc0_state.c
index 9f9921cc09e..1a37d045801 100644
--- a/src/gallium/drivers/nvc0/nvc0_state.c
+++ b/src/gallium/drivers/nvc0/nvc0_state.c
@@ -266,6 +266,8 @@ nvc0_rasterizer_state_create(struct pipe_context *pipe,
SB_DATA (so, fui(cso->offset_scale));
SB_BEGIN_3D(so, POLYGON_OFFSET_UNITS, 1);
SB_DATA (so, fui(cso->offset_units * 2.0f));
+ SB_BEGIN_3D(so, POLYGON_OFFSET_CLAMP, 1);
+ SB_DATA (so, fui(cso->offset_clamp));
}
assert(so->size <= (sizeof(so->state) / sizeof(so->state[0])));