| Summary: | [llvmpipe] piglit glean fragProg1 Z-write test regression | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | Vinson Lee <vlee> |
| Component: | Other | Assignee: | mesa-dev |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | CC: | jfonseca, mcclurem, sroland |
| Version: | git | Keywords: | regression |
| Hardware: | x86-64 (AMD64) | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
|
Description
Vinson Lee
2013-12-11 18:40:20 UTC
A patch is in testing to implement the correct plumbing for ARB_depth_clamp. The fragment depth write was not clamping against the near/far depth range as specified here:
How should the setting of the raster position function when depth
clamping is enabled?
RESOLUTION: When setting the raster position, clamp the raster
position zw to the range [min(n,f),max(n,f)] where n and f are
the near and far depth range values.
See: http://www.opengl.org/registry/specs/ARB/depth_clamp.txt
I just pushed Matthew's fix for this: commit e84a1ab3c400f819408a7ebe01c2325cd59d94d3 Author: Matthew McClure <mcclurem@vmware.com> Date: Tue Dec 10 13:10:03 2013 -0800 llvmpipe: add plumbing for ARB_depth_clamp With this patch llvmpipe will adhere to the ARB_depth_clamp enabled state when clamping the fragment's zw value. To support this, the variant key now includes the depth_clamp state. key->depth_clamp is derived from pipe_rasterizer_state's (depth_clip == 0), thus depth clamp is only enabled when depth clip is disabled. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: José Fonseca <jfonseca@vmware.com> It should be fixed now. |
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.