Summary: | [IVB/HSW] ogl-samples: gl-330-texture-rect assertion fails | ||
---|---|---|---|
Product: | Mesa | Reporter: | Kenneth Graunke <kenneth> |
Component: | Drivers/DRI/i965 | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | anuj.phogat, eero.t.tamminen, itoral, jianx.zhou, kenneth, mengmeng.meng |
Version: | git | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Kenneth Graunke
2014-03-23 08:08:14 UTC
Apparently, the test calls glTexParameteri with a pname of GL_TEXTURE_MAX_LEVEL and param value of 0. I don't see any text offhand which state you /can't/ do that, but given that rectangle textures don't support mipmapping, it seems weird... (In reply to comment #1) > Apparently, the test calls glTexParameteri with a pname of > GL_TEXTURE_MAX_LEVEL and param value of 0. > > I don't see any text offhand which state you /can't/ do that, but given that > rectangle textures don't support mipmapping, it seems weird... From http://www.opengl.org/wiki/Rectangle_Texture: "Rectangle textures contain exactly one image; they cannot have mipmaps. Therefore, any texture parameters that depend on LODs are irrelevant when used with rectangle textures; attempting to set these parameters to any value other than 0 will result in an error." Based on this I understand that that setting a value of 0 for GL_TEXTURE_MAX_LEVEL should not produce an error in this case. I sent a patch to the mailing list: http://lists.freedesktop.org/archives/mesa-dev/2014-March/056844.html (In reply to comment #2) With above patch, the problem is fixed. commit f5904b732efd6ad1ec8273ce3c72dbf38df7076c Author: Iago Toral Quiroga <itoral@igalia.com> Date: Mon Mar 31 02:04:00 2014 -0600 mesa: Allow setting GL_TEXTURE_MAX_LEVEL to 0 with GL_TEXTURE_RECTANGLE. Currently, we raise an error when doing this which breaks a conformance test from the OpenGL samples pack. Even if this is a bit silly it is not an error. From http://www.opengl.org/wiki/Rectangle_Texture: "Rectangle textures contain exactly one image; they cannot have mipmaps. Therefore, any texture parameters that depend on LODs are irrelevant when used with rectangle textures; attempting to set these parameters to any value other than 0 will result in an error." Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76496 Reviewed-by: Brian Paul <brianp@vmware.com> |
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.