Bug 73144 - Queries on textures with borders give incorrect results
Summary: Queries on textures with borders give incorrect results
Status: RESOLVED WONTFIX
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/X11 (show other bugs)
Version: 10.0
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-30 12:00 UTC by Bruce Merry
Modified: 2014-01-06 18:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to add test to piglit (3.63 KB, patch)
2013-12-30 12:07 UTC, Bruce Merry
Details | Splinter Review

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.