diff options
author | Ilia Mirkin <[email protected]> | 2014-10-23 00:43:45 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-11-15 14:14:51 -0500 |
commit | 3bc42a09e2d13c42e15423a17b5c571049a11224 (patch) | |
tree | 5281a49450f2486530bf8a66f914b93080830f3f /src/gallium/drivers/nouveau/nv50/nv50_state.c | |
parent | 61c68b69d704b5faa5ff9d2b73b24bebf7e19412 (diff) |
nv50,nvc0: use clip_halfz setting when creating rasterizer state
This enables the ARB_clip_control extension.
Signed-off-by: Ilia Mirkin <[email protected]>
Cc: "10.4" <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50/nv50_state.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_state.c b/src/gallium/drivers/nouveau/nv50/nv50_state.c index cf84f886662..155cdddf845 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_state.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_state.c @@ -333,6 +333,9 @@ nv50_rasterizer_state_create(struct pipe_context *pipe, SB_BEGIN_3D(so, VIEW_VOLUME_CLIP_CTRL, 1); SB_DATA (so, reg); + SB_BEGIN_3D(so, DEPTH_CLIP_NEGATIVE_Z, 1); + SB_DATA (so, cso->clip_halfz); + assert(so->size <= (sizeof(so->state) / sizeof(so->state[0]))); return (void *)so; } |