Bug 21461 - Mesa 7.4 implementation error: bad wrapMode in clamp_rect_coord_linear
Summary: Mesa 7.4 implementation error: bad wrapMode in clamp_rect_coord_linear
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-28 06:25 UTC by martin
Modified: 2009-04-28 09:10 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
the patch that brian commited to mesa master (for reference) (791 bytes, patch)
2009-04-28 09:04 UTC, martin
Details | Splinter Review

Description martin 2009-04-28 06:25:32 UTC
One ubuntu user reported that every time he uses the slideshow feature in f-spot using ubuntu jaunty then he sees error like this printed to the terminal:

Mesa 7.4 implementation error: bad wrapMode in clamp_rect_coord_linear
Please report at bugzilla.freedesktop.org
Mesa 7.4 implementation error: bad wrapMode in clamp_rect_coord_linear
Please report at bugzilla.freedesktop.org
Mesa 7.4 implementation error: bad wrapMode in clamp_rect_coord_linear
Please report at bugzilla.freedesktop.org
Mesa 7.4 implementation error: bad wrapMode in clamp_rect_coord_linear
Please report at bugzilla.freedesktop.org

While these errors are printed to the terminal a new window appears [for the slideshow] but it stays black and the CPU goes to 100%.

User has a "Quadro NVS 110M/GeForce Go 7300" (G72M chipset) and he is using the open source *-nv xorg driver.

The xorg.log for this user:
http://launchpadlibrarian.net/25817232/Xorg.0.log

lspci -vvnn:
http://launchpadlibrarian.net/25817184/lspci_vvnn.log

Original downstream bug report (with more data):
https://bugs.launchpad.net/f-spot/+bug/362883


PS. I ran the repro on intel G45 and I did not exhibit these symptoms but of course I didn't use the exact same images for my slideshow but still..
Comment 1 Jerome Lacoste 2009-04-28 06:42:01 UTC
I am the one who reported the bug. Got side-tracked and forgot to report upstream. Thanks Martin.

Available for testing and reporting more information as needed.

Thanks,
Comment 2 Roland Scheidegger 2009-04-28 07:15:07 UTC
(In reply to comment #0)
> One ubuntu user reported that every time he uses the slideshow feature in
> f-spot using ubuntu jaunty then he sees error like this printed to the
> terminal:
> 
> Mesa 7.4 implementation error: bad wrapMode in clamp_rect_coord_linear
> Please report at bugzilla.freedesktop.org

> User has a "Quadro NVS 110M/GeForce Go 7300" (G72M chipset) and he is using the
> open source *-nv xorg driver.

> PS. I ran the repro on intel G45 and I did not exhibit these symptoms but of
> course I didn't use the exact same images for my slideshow but still..

These errors are from swrast, since the nv driver doesn't support 3d (so you wouldn't see these errors on G45).
It means the wrap mode was not one of the modes allowed for texture rectangle targets (there are restrictions what modes are allowed compared to 2d targets). Not sure though how this could happen, since mesa should not allow this to be set to illegal values (hence the implementation error...).
Comment 3 Brian Paul 2009-04-28 08:05:49 UTC
Look like this is caused by a missing break statement in a switch.

Fixed in commit dcf571aff9de1a4298c4d2c4148d84cdc4daf02e
and cherry-picked to the 7.4 branch.
Comment 4 martin 2009-04-28 09:04:32 UTC
Created attachment 25233 [details] [review]
the patch that brian commited to mesa master (for reference)
Comment 5 martin 2009-04-28 09:10:02 UTC
Terrific job Brian, thanks for the super quick turn around!


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.