Bug 10986

Summary: compressed texture formats are broken
Product: Mesa Reporter: Roland Scheidegger <sroland>
Component: Drivers/DRI/i915Assignee: Zou Nan hai <nanhai.zou>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: michael.fu
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Roland Scheidegger 2007-05-17 18:12:49 UTC
Both i915 and i915tex have issues with s3tc formats.
This can most easily be seen if you modify tests/mipmap_limits.c to use a compressed texture format (for instance GL_COMPRESSED_RGBA_S3TC_DXT1_EXT) instead of RGB as internal format (note you'll need libtxc_dxtn for this to work).
With both drivers, the 2 smallest mipmaps are broken.
Additionally, with the i915tex driver, all mipmaps except the first are broken (looks like they only get partially uploaded/blitted).
Comment 1 Roland Scheidegger 2007-05-18 16:05:06 UTC
Fixed in i915.
There seem to be more issues with that in i915tex, looks like it's broken in more places. Though at least along the way a problem causing huge performance with compressed textures is fixed now. In any case, the trouble with big mipmaps were not due to a driver bug (need a compression library which honors dstRowStride).
Comment 2 Roland Scheidegger 2007-05-18 20:11:41 UTC
mostly fixed in git head for i915tex.
This needs however another look, as there are obviously still issues (copying around very small compressed textures (width or height smaller than a block) in some driver paths will result in not copied or half-copied blocks, need to fix that in the right places without too many hacks).
Comment 3 Michael Fu 2008-02-18 23:14:24 UTC
we need to refresh the status for this bug on latest 915 driver.
Comment 4 Zou Nan hai 2008-02-28 00:14:44 UTC
This sample is ok on lastest build, how there is still one corner path that may hit this issue(height < 4 level), I have fixed in mesa.
Comment 5 Adam Jackson 2009-08-24 12:26:52 UTC
Mass version move, cvs -> git

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.