Bug 73144

Summary: Queries on textures with borders give incorrect results
Product: Mesa Reporter: Bruce Merry <bmerry>
Component: Drivers/X11Assignee: mesa-dev
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium    
Version: 10.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch to add test to piglit

Description Bruce Merry 2013-12-30 12:00:21 UTC
When I create a 1D texture with width 6 and border 1, querying GL_TEXTURE_WIDTH and GL_TEXTURE_BORDER return 4 and 0 respectively, instead of 6 and 1. I will attach a piglit test.

Mesa 10.0.1 configured with --enable-xlib-glx --disable-dri --with-gallium-drivers=swrast --with-egl-platforms=x11 and LD_LIBRARY_PATH=<mesadir>/lib (i.e. not the gallium subdirectory).
Comment 1 Bruce Merry 2013-12-30 12:07:56 UTC
Created attachment 91328 [details] [review]
Patch to add test to piglit
Comment 2 Brian Paul 2014-01-06 18:32:17 UTC
We won't be fixing this.  We removed support for texture borders since few (none?) of our hardware drivers support them.

When glTexImage() is called with border=1 we tweak the pixel unpack params and only store the image w/out the border.

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.