Summary: | [i965 Bisected]Piglit spec_EXT_texture_array_gen-mipmap fails | ||
---|---|---|---|
Product: | Mesa | Reporter: | lu hua <huax.lu> |
Component: | Drivers/DRI/i965 | Assignee: | Ian Romanick <idr> |
Status: | VERIFIED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | imamdxl8805, vlee |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
lu hua
2014-02-10 03:02:42 UTC
When I ran it, this test segfaulted. Getting wrong results is better than crashing, so... did you read the commit message? Pardon, this wasn't the segfault case, but it wasn't working either. It is impossible that this test passed since commit 2a3d1e2e06ce. Looking at the test, it's fairly terrible. It sets a texture to all white, generates mipmap levels, then checks the results. The problem is that it's possible to get all white as a result by luck. Previous to 2bf4db1697, the test was getting a GL error (as predicted) generated inside meta. The test needs some changes. Specifically, I think a more interesting texture needs to be used. Since this test involves texture compression and other things that make predicting the exact result difficult, the result of compressing the array texture should be compared with the result of compressing a regular GL_TEXTURE_2D. The updated test would create two textures, one GL_TEXTURE_2D_ARRAY and one GL_TEXTURE_2D. Send the same texture (perhaps the RGBW texture) to both with the same internalFormat. Call glGenerateMipmaps and glGetTexImage on both. Each should give the same results. At a minimum, the test should check that glGenerateMipmaps doesn't generate a GL error. *** Bug 74471 has been marked as a duplicate of this bug. *** *** Bug 74923 has been marked as a duplicate of this bug. *** It passes on master branch commit eb65d4b84d4c514bfa9114a56a08513efabbe030 and 2a3d1e2e06ce74801ccbfd349558d44653b9692f. It also fails on mesa 10.1 branch. Passes here, and I don't think we care about the 10.1 branch any more. Verified.Works well on latest mesa master and 10.4 branch. |
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.