From owner-freebsd-multimedia Mon Sep 29 17:17:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA20085 for multimedia-outgoing; Mon, 29 Sep 1997 17:17:31 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id RAA20077 for ; Mon, 29 Sep 1997 17:17:24 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Mon, 29 Sep 1997 20:12:36 -0400 (EDT) Received: from elmer.ct.picker.com by ct.picker.com (4.1/SMI-4.1) id AA25690; Mon, 29 Sep 97 20:12:30 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id UAA06225; Mon, 29 Sep 1997 20:08:41 -0400 Message-Id: <19970929200841.34122@ct.picker.com> Date: Mon, 29 Sep 1997 20:08:41 -0400 From: Randall Hopper To: "Michael G. Petry" , Kenneth Merry Cc: multimedia@FreeBSD.ORG, Amancio Hasty Subject: Re: Matrox Millenium with 8M and BT848 References: <199709290016.UAA13787@netwolf.NetMasters.Com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81 In-Reply-To: <199709290016.UAA13787@netwolf.NetMasters.Com>; from Michael G. Petry on Sun, Sep 28, 1997 at 08:16:03PM -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I gather the video block on the Millenium @ 1280 looks fine (solid, rectangular, correct colors); it just not in the window frame. It's off to the left. And only does this in 1280x1024, not 1024x768. A few questions that'll help nail down the problem. 1) With the "+ 256" you added, is the video inside the window frame no matter how high or low the TV window is on your screen (e.g. try "-geometry +100+0" and "-geometry +100+800" -- do both these look OK?)? 2) Please add this line after the line you patched: printf( "geometry = X %4d, Y %4d, Bpp %d\n", g.x, g.y, Bpp ); and try "-geometry +0+700". Does it print something very close to "X 1, Y 780, Bpp 4" (the location of the video window relative to the root window)? For calibration, does -geometry +0+0 give you an Fxtv window in the upper-left corner of the desktop and print out something very close to "X 1, Y 80, Bpp 4"? 3) See if this makes any difference: --- xutil.c.ORIG Mon Sep 29 18:21:43 1997 +++ xutil.c Mon Sep 29 18:21:51 1997 @@ -735 +735 @@ - XUTILGetVisualBpp( display, vi, &Bpp, NULL ); + XUTILGetVisualBpp( display, vi, NULL, &Bpp ); DGA pitch is right, or you wouldn't see a solid rectangular video block. Could be that XTranslateCoordinates doesn't work correctly on Milleniums for 1280x1024x24bpp. BTW, please try this on XFree 3.3.1. Hey Amancio. You've got a Millenium, right? Do you see this too (or can you run at 1280x1024x24bpp)? Randall Michael G. Petry: |A couple of us with Matrox cardsan 8meg have seen a strange shifting of |the video image when running fxtv. I'm running it at 1280x1024 in 24 bit |mode with a Bpp of 4. In the course of trying to understand the problem, |it seems the image is shifted by 256 pixels. What concerns me is 1280 - |1024 is where I came up with the guess of 256. (it use to run justfine in |1024x768) | |In TVCAPTUREStart of tvcapture.c I changed the folowing: | | video.addr = x->base_addr + (((g.y * x->pitch) + g.x + 256 ) * Bpp); | ^^^^^ |This is a real hack at looking for the root cause. I don't know if this is a |Matrox peculiarity or not. Are any others running in a higher than 1024xXXXX |mode on their video boards and experiencing an image shift? Kenneth Merry: |Michael G. Petry wrote... | I have a Millennium with 8MB of WRAM, and I've seen the same shift |problem under XFree86 in direct video mode. IIRC, it does run normally at |1024x768, but not at 1280x1024.