Summary: | (Kind of) uninitialized variable, results in Xv bug on C&T 69030 | ||
---|---|---|---|
Product: | xorg | Reporter: | Petteri Aimonen <jpa> |
Component: | Driver/chips | Assignee: | Egbert Eich <eich> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | medium | CC: | alexdeucher, jpa |
Version: | 7.2 (2007.02) | Keywords: | patch |
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
URL: | http://lxr.freedesktop.org/source/driver/xf86-video-chips/src/ct_video.c#L626 | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Petteri Aimonen
2007-03-08 12:26:36 UTC
Oops, bug in the masking. Only need to keep bottom two bits clear, there is no bit 8 :) Correct patch follows: --- xf86-video-chips-1.1.1.orig/src/ct_video.c 2006-04-08 02:29:31.000000000 +0300 +++ xf86-video-chips-1.1.1/src/ct_video.c 2007-03-10 14:18:48.000000000 +0200 @@ -638,8 +638,8 @@ if (dblscan) tmp = cPtr->VideoZoomMax >> 1; if (drw_h > src_h) - tmp = tmp * src_h / drw_h; - cPtr->writeMR(cPtr, 0x33, tmp); + tmp = 256 * src_h / drw_h; + cPtr->writeMR(cPtr, 0x33, tmp & 0xFC); } cPtr->writeMR(cPtr, 0x1F, m1f); cPtr->writeMR(cPtr, 0x1E, m1e); Committed: 242a378d6c0bead85b0b6e94f40c51849ba8f43b Any chance you want to be the chips maintainer? :) > Any chance you want to be the chips maintainer? :)
Hrm, too bad I don't usually have access to any chips based video card. As such, it would be difficult to do anything but apply patches from other people (which don't seem too ubiquitous :).
|
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.