diff options
author | Christoph Bumiller <[email protected]> | 2010-12-19 21:42:00 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2010-12-19 21:42:00 +0100 |
commit | d047168d81cfeb39a98f3ae16416872facc6237c (patch) | |
tree | 86541857d45215c94ac8971f98c885f8c2986a0f /src/gallium/drivers/nvc0/nvc0_state.c | |
parent | e9de2a31a5a3c5764eef7b57a896bade102bad30 (diff) |
nvc0: fix clipping with scissors/viewport
Also setup optional path to use proper primitive clipping instead,
which is probably slower.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_state.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_state.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_state.c b/src/gallium/drivers/nvc0/nvc0_state.c index 8d293233b12..a462b543ad0 100644 --- a/src/gallium/drivers/nvc0/nvc0_state.c +++ b/src/gallium/drivers/nvc0/nvc0_state.c @@ -175,6 +175,10 @@ nvc0_rasterizer_state_create(struct pipe_context *pipe, if (!so) return NULL; so->pipe = *cso; + +#ifndef NVC0_SCISSORS_CLIPPING + SB_OUT_3D (so, SCISSOR_ENABLE(0), cso->scissor); +#endif SB_BEGIN_3D(so, SHADE_MODEL, 1); SB_DATA (so, cso->flatshade ? NVC0_3D_SHADE_MODEL_FLAT : |