Bug 12217

Summary: clipping planes doesn't work well
Product: Mesa Reporter: Shuang He <shuang.he>
Component: Drivers/DRI/i965Assignee: Zou Nan hai <nanhai.zou>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: dri-devel
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test case

Description Shuang He 2007-08-29 20:37:05 UTC
this issue happens on G965 GM965
define 6 user defined clip planes as follow:
GL_CLIP_PLANE0 x-25=0
GL_CLIP_PLANE1 -x+50=0
GL_CLIP_PLANE2 y-20=0
GL_CLIP_PLANE3 -y+60=0
GL_CLIP_PLANE4 z-0.2=0
GL_CLIP_PLANE5 -z+0.6=0
first enable CLIP_PLANE0, CLIP_PLANE1, CLIP_PLANE2 (with others disabled), draw a point at (10.5, 15.5, 0.1), this point should be clipped out, it does work well.

but then, disable CLIP_PLANE0, CLIP_PLANE1, CLIP_PLANE2, and enable CLIP_PLANE3
draw a point at (10.5, 15.5, 0.1), this point should not be clipped out. but it did clip it out.

this issue doesn't happen in non-DRI mode.
Comment 1 Shuang He 2007-08-29 20:38:34 UTC
Created attachment 11327 [details]
test case
Comment 2 Zou Nan hai 2007-09-24 01:56:50 UTC
fix in commit 439fa7957874d564b30a92345e74ee57b388ebec
Comment 3 Shuang He 2007-09-24 19:53:17 UTC
verified on both 32bit and 64bit
Comment 4 Adam Jackson 2009-08-24 12:27:55 UTC
Mass version move, cvs -> git

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.