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_stateobj.h | |
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_stateobj.h')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_stateobj.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_stateobj.h b/src/gallium/drivers/nvc0/nvc0_stateobj.h index 41084f36945..67674d4093f 100644 --- a/src/gallium/drivers/nvc0/nvc0_stateobj.h +++ b/src/gallium/drivers/nvc0/nvc0_stateobj.h @@ -4,6 +4,8 @@ #include "pipe/p_state.h" +#define NVC0_SCISSORS_CLIPPING + #define SB_BEGIN_3D(so, m, s) \ (so)->state[(so)->size++] = \ (0x2 << 28) | ((s) << 16) | (NVC0_SUBCH_3D << 13) | ((NVC0_3D_##m) >> 2) @@ -46,7 +48,7 @@ nvc0_tic_entry(struct pipe_sampler_view *view) struct nvc0_rasterizer_stateobj { struct pipe_rasterizer_state pipe; int size; - uint32_t state[42]; + uint32_t state[43]; }; struct nvc0_zsa_stateobj { |