Bug 27338 - Mipmap tiling problem
Summary: Mipmap tiling problem
Status: CLOSED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r300 (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 23:56 UTC by Mathias Fröhlich
Modified: 2010-03-27 06:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Fix for the mipmap problem (784 bytes, patch)
2010-03-26 23:56 UTC, Mathias Fröhlich
Details | Splinter Review

Description Mathias Fröhlich 2010-03-26 23:56:55 UTC
Created attachment 34501 [details] [review]
Fix for the mipmap problem

Hi,

Since the tiling changes in the r300g driver I have observed problems with non square textures in some mipmap levels. I have not nailed the problem down to a specific level or a specific texture size, but the attached patch looks plausible to me and fixes some fallout I observed since these patches with my favourite OpenSceneGraph test model displayed in osgviewer.

Please review/apply.

Mathias
Comment 1 Marek Olšák 2010-03-27 06:15:17 UTC
Somehow when the texture height is at least 4x smaller than a macro-tile, the hw switches back to macro-linear. I'd say this is an undocumented hw behavior rather than a bug in stride calculation or something like that.

So thanks for the patch, tested and pushed. Closing...


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.