diff options
author | Ben Skeggs <[email protected]> | 2008-02-18 14:12:58 +1100 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-02-18 14:12:58 +1100 |
commit | 12e0aa7b1d587b7c30897762d2f8f368a4a7d453 (patch) | |
tree | ef7d190bd51fe495b7fdf860ec0dbdc04406428d /src/gallium/drivers/nv40/nv40_context.h | |
parent | 5e091b573aa0a0c45f8ff34429f2a9d4198bb80a (diff) |
nv40: similar changes to polygon stipple as were done for scissor
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_context.h')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_context.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/gallium/drivers/nv40/nv40_context.h b/src/gallium/drivers/nv40/nv40_context.h index c4523112dbc..7d5806f5f73 100644 --- a/src/gallium/drivers/nv40/nv40_context.h +++ b/src/gallium/drivers/nv40/nv40_context.h @@ -59,6 +59,18 @@ struct nv40_rasterizer_state { struct nouveau_stateobj *so; }; +struct nv40_state { + struct { + unsigned enabled; + struct nouveau_stateobj *so; + } scissor; + + struct { + unsigned enabled; + struct nouveau_stateobj *so; + } stipple; +}; + struct nv40_context { struct pipe_context pipe; struct nouveau_winsys *nvws; @@ -79,12 +91,10 @@ struct nv40_context { struct { struct pipe_scissor_state scissor; + unsigned stipple[32]; } pipe_state; - struct { - unsigned scissor_enabled; - struct nouveau_stateobj *scissor; - } state; + struct nv40_state state; struct nouveau_stateobj *so_framebuffer; struct nouveau_stateobj *so_fragtex[16]; |