Bug 12263

Summary: Some stencil op failed when draw bitmap
Product: Mesa Reporter: WuNian <nian.wu>
Component: Drivers/DRI/i965Assignee: haihao <haihao.xiang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: dri-devel, haihao.xiang
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test case

Description WuNian 2007-09-02 22:19:42 UTC
When specify Stencil operation as GL_ZERO or GL_REPLACE, then draw bitmap, the stencil buffer will not be modified.

This regression is caused by commit: b47c9f8c915ae4ca8c7fa5ee3b6b64f17c38b569.
Comment 1 WuNian 2007-09-02 22:20:10 UTC
Created attachment 11395 [details]
test case
Comment 2 WuNian 2007-09-03 00:22:34 UTC
The bug seems not introduced by commit b47c9f8c915ae4ca8c7fa5ee3b6b64f17c38b569.
With i915 driver and soft rendering, the case also failed. Maybe this bug is also related to Mesa core. So I don't know how long the bug has been introducted.

In Ubuntu7.04 distribution, the case passed with i915 driver and soft rendering.
Comment 3 Brian Paul 2007-09-03 15:25:29 UTC
Try adding GLUT_STENCIL to your glutInitDisplayMode() call.
Comment 4 WuNian 2007-09-03 17:44:36 UTC
After adding GLUT_STENCIL, the case is correct with soft rendering. 

With i915 driver and i965 driver, both of the results are incorrect:

expected at (0): 0, actual: 0.000000
expected at (1): 0, actual: 1.000000
expected at (2): 2, actual: 2.000000
expected at (3): 2, actual: 3.000000
expected at (4): 0, actual: 4.000000
expected at (5): 0, actual: 5.000000
expected at (6): 2, actual: 6.000000
expected at (7): 2, actual: 7.000000
........

Comment 5 haihao 2007-09-17 18:26:07 UTC
fixed in mesa git e21d2c6ef300c7661f49c50b4c68b4f205795f4a
Comment 6 Adam Jackson 2009-08-24 12:27:59 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.