diff options
author | Ben Skeggs <[email protected]> | 2008-04-07 20:10:40 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-04-07 21:43:29 +1000 |
commit | 2655f6901289bcfe3835cf28d7b9eefa242045b8 (patch) | |
tree | 220e78d1dd1b6b2af2da986870106c928572ce53 /src/gallium/drivers/nv40/nv40_state.h | |
parent | 2946a5a012f494bad280a0ecf082d81ed4e89c3b (diff) |
nv40: implement user clip planes
It turns out the user planes handed to the driver are already in clip space.
Hence, we no longer need to transform incoming vertices before computing the
clip distance, and no longer need to change the interface provided by
gallium. Yay :)
The clip state change handling could be better, but this works.
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_state.h')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_state.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv40/nv40_state.h b/src/gallium/drivers/nv40/nv40_state.h index e018464c9f8..2b4225deb2e 100644 --- a/src/gallium/drivers/nv40/nv40_state.h +++ b/src/gallium/drivers/nv40/nv40_state.h @@ -29,6 +29,9 @@ struct nv40_vertex_program { struct draw_vertex_shader *draw; boolean translated; + + struct pipe_clip_state ucp; + struct nv40_vertex_program_exec *insns; unsigned nr_insns; struct nv40_vertex_program_data *consts; |