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_draw.c | |
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_draw.c')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv40/nv40_draw.c b/src/gallium/drivers/nv40/nv40_draw.c index 9cd8fa6a497..7f008aca3a8 100644 --- a/src/gallium/drivers/nv40/nv40_draw.c +++ b/src/gallium/drivers/nv40/nv40_draw.c @@ -236,7 +236,7 @@ nv40_draw_elements_swtnl(struct pipe_context *pipe, if (!nv40_state_validate_swtnl(nv40)) return FALSE; - nv40->dirty &= ~(1ULL << NV40_STATE_VTXBUF); + nv40->state.dirty &= ~(1ULL << NV40_STATE_VTXBUF); nv40_state_emit(nv40); for (i = 0; i < PIPE_ATTRIB_MAX; i++) { |