Summary: | sp_texture.c:322:softpipe_get_transfer: Assertion `level <= resource->last_level' failed. | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | Other | Assignee: | mesa-dev |
Status: | RESOLVED NOTABUG | QA Contact: | |
Severity: | critical | ||
Priority: | medium | CC: | brianp |
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Vinson Lee
2012-03-20 22:37:18 UTC
73fd269d2f5aa2a0b9bc03ef904b81e263e3cc37 is the first bad commit commit 73fd269d2f5aa2a0b9bc03ef904b81e263e3cc37 Author: Brian Paul <brianp@vmware.com> Date: Sat Mar 17 16:30:03 2012 -0600 mesa: add integer texture completeness check Per the spec, only nearest filtering is supported for integer textures. Otherwise, the texture is incomplete. Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net> It turns out that Brian's commit is correct. I was using GL_LINEAR and GL_LINEAR_MIPMAP_LINEAR filtering on integer textures, which is illegal according to both the GL_EXT_texture_integer and OpenGL 3.0 specs. I sent a patch to the piglit list to fix this earlier today. I'll push it soon if there are no objections. If there's an assertion failure there's still a bug, isn't there ? Invalid user input is no excuse for crashing. Vinson, I'm not seeing the failed assertion. The test fails, but I believe that's because of the filtering issue. Please retest after Ken's piglit patch and see what happens. (In reply to comment #3) > If there's an assertion failure there's still a bug, isn't there ? Invalid user > input is no excuse for crashing. Good point. That means somebody is not filtering out uses of incomplete textures. Feel free to reopen; you'll need to revert my piglit patch ("Use nearest filtering in the texelFetch() and textureSize() tests."). |
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.