Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 1997 20:08:41 -0400
From:      Randall Hopper <rhh@ct.picker.com>
To:        "Michael G. Petry" <petry@NetMasters.Com>, Kenneth Merry <ken@plutotech.com>
Cc:        multimedia@FreeBSD.ORG, Amancio Hasty <hasty@rah.star-gate.com>
Subject:   Re: Matrox Millenium with 8M and BT848
Message-ID:  <19970929200841.34122@ct.picker.com>
In-Reply-To: <199709290016.UAA13787@netwolf.NetMasters.Com>; from Michael G. Petry on Sun, Sep 28, 1997 at 08:16:03PM -0400
References:  <199709290016.UAA13787@netwolf.NetMasters.Com>

next in thread | previous in thread | raw e-mail | index | archive | help
     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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970929200841.34122>