| Summary: |
depth texture implement incorrect if texture border is applied |
| Product: |
Mesa
|
Reporter: |
WuNian <nian.wu> |
| Component: |
Drivers/DRI/i915 | Assignee: |
haihao <haihao.xiang> |
| Status: |
VERIFIED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
medium
|
CC: |
dri-devel
|
| Version: |
git | |
|
| Hardware: |
x86 (IA32) | |
|
| OS: |
Linux (All) | |
|
| Whiteboard: |
|
|
i915 platform:
|
|
i915 features:
|
|
| Attachments: |
test case
|
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.
Created attachment 17658 [details] test case when use depth texture and DEPTH_TEXTURE_MODE is GL_ALPHA, if texture border color is used, then the destination depth alpha component is incorrect. In specification of ARB_depth_texture, it is saied that: Texture borders are supported. The texture border value used for depth textures is the first component of TEXTURE_BORDER_COLOR. and „If the texture contains depth components, the R component of the TEXTURE_BORDER_COLOR vector is interpreted as the depth component value." But i915/i965 driver use the A component of the TEXTURE_BORDER_COLOR vector when DEPTH_TEXTURE_MODE is GL_ALPHA. The bug also exists with mesa_7_0_branch.