Bug 10219 - incorrect mipmap is selected if set MIN_LOD with high value
Summary: incorrect mipmap is selected if set MIN_LOD with high value
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: haihao
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 18:01 UTC by Wei Wang
Modified: 2009-08-24 12:26 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
test case (3.89 KB, text/plain)
2007-03-07 18:05 UTC, Wei Wang
Details
limitation for MIN_LOD in i965 (1.04 KB, patch)
2007-03-18 06:21 UTC, haihao
Details | Splinter Review

Description Wei Wang 2007-03-07 18:01:43 UTC
Version: mesa master 3c44d68d78d8bddf69b5bd1a00f854d8cde971bb

Generate 7 level RGB mipmap from 64x64 (level 0) to 1x1 level6. After these parameter are assigned the corresponding value: BASE_LEVEL=1, MAX_LEVEL=1000, MIN_LOD=20, MAX_LOD=1000, opengl can use 2x2 mipmap when drawing 64x64 RGB rectangle instead of the 1x1 mipmap which is the right choice.

Under direct context or indirect (LIBGL_ALWAYS_INDIRECT=1) context, this bug happens. However, if i965 dri driver is removed, the bug disappear.
Comment 1 Wei Wang 2007-03-07 18:05:51 UTC
Created attachment 9027 [details]
test case

The case assigns each mipmap with diff color so we can identify which mipmap was used when drawing the rectangle. you can try to assign MY_MIN_LOD with diff value to see the diff behavior.
Comment 2 haihao 2007-03-18 06:21:42 UTC
Created attachment 9211 [details] [review]
limitation for MIN_LOD in i965

Check the upper limit of min_lod in i965.  Because Min LOD takes precedence in i965 if Min LOD is greater than Max LOD, it is unnecessary for max_lod.
Comment 3 haihao 2007-08-30 21:46:45 UTC
fixed in git
22bc3cdd49eb81d48ad4b8f06be0b9a9de624c91(mesa)
Comment 4 Adam Jackson 2009-08-24 12:26:09 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.