Bug 27338

Summary: Mipmap tiling problem
Product: Mesa Reporter: Mathias Fröhlich <Mathias.Froehlich>
Component: Drivers/DRI/r300Assignee: Default DRI bug account <dri-devel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix for the mipmap problem

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.