Re: Multiple instances and RAC

2004-11-24 Thread Marc Aurele La France
On Tue, 23 Nov 2004 [EMAIL PROTECTED] wrote:
I'm trying to set up a multihead/multiuser system using multiple instacnes
of XFree86, but I've got some problems when using some cards (like
dual-head video cards or ATI Rage). When using multi-head with only one
instance of xfree I see that RAC can handle those problems.

I think I need to modify RAC module so it's always loaded and I make the
multiples XFree instances share some info about resources being used.

I've seen RAC module source code (hw/xfree86/rac/xf86RAC.c), but there are
just some wrapper functions there.

Where do I need to look/modify?
Is there any way better than modifying the RAC module?
The bulk of what you are looking for is in hw/xfree86/common/, spcifically 
xf86Bus.c  xf86pciBus.c.  However, bear in mind that this code really wasn't 
designed with multiple server instances in mind.

Marc.
+--+---+
|  Marc Aurele La France   |  work:   1-780-492-9310   |
|  Computing and Network Services  |  fax:1-780-492-1729   |
|  352 General Services Building   |  email:  [EMAIL PROTECTED]  |
|  University of Alberta   +---+
|  Edmonton, Alberta   |   |
|  T6G 2H1 | Standard disclaimers apply|
|  CANADA  |   |
+--+---+
XFree86 developer and VP.  ATI driver and X server internals.
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Handling multi-monitor configuration

2004-11-24 Thread David Dawes
I've been reworking the multi-monitor configuration support that I started
a while ago, and I have a patch relative to the latest XFree86 snapshot
(4.4.99.17) that implements it.  This provides a better way of handling
the multi-monitor configuration than the current mergedfb methods.  It
does so by allowing multiple Monitor entries in the Screen sections, and
allowing per-Monitor Display subsections for providing per-monitor
parameters.

The patch implements the configuration changes and some helper functions
that drivers can use to access the new data.  The implementation is
backward-compatible in the sense that existing drivers will continue to
function without knowledge of these changes.

An example of how the configuration looks is as follows:

Section Screen
Identifier Multi-Monitor Demo Screen
Device Multi-Monitor Device 1
Monitor 1 My Monitor
Monitor 2 My Monitor
Monitor 3 My Other Monitor
DefaultDepth 24
Option Screen Option Value
SubSection Display
Monitor 1
Modes 1024x768 800x600
Virtual 1024 768
Option MonitorOption val1
EndSubSection
SubSection Display
Monitor 2
Modes 1280x1024
Option MonitorOption val2
EndSubSection
SubSection Display
Monitor 3
Modes 1600x1200
Option MonitorOption val3
EndSubSection
SubSection Display
# Screen-wide display parameters
EndSubSection
EndSection

Although my broader goal is to eliminate the need for complete static
configuration, this patch also serves to provide associations between
the relevant data internally in a more consistent way than is used for
the current multi-monitor solutions.

The patch is available at:

   http://www.x-oz.com/multimonconfig-1.0.diff.gz

Comments and feedback are welcome.

David
-- 
David Dawes X-Oz Technologies
www.XFree86.org/~dawes  www.x-oz.com
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


DGA and tearing effects

2004-11-24 Thread Eugene Farinas
Hi guys! We're developing a DGA program that render full screen at 1280x1024 16 
bpp 15fps the video image read from a sony camera, but we're experiencing 
tearing artifacts during rendering. This is a part of the code that copies the 
data to the frame buffer:

void CAM_APP::DisplayImage_NoPartial(unsigned char* offset)
{
register int j;
register unsigned long caddr = (unsigned long) offset;
  for(j=0; jiSize; caddr+=2,j++){
  *( (unsigned short*) caddr ) = sTable[g_pBuf[j]];
  }
}

Where the offset is the start of the buffer destination, and g_pBuf is the data 
captured from the camera. we've tried copying the data during vertical resync 
but we're still experiencing tearing on the image. We're using an AMD gx2 geode 
processor w/ 128 mb ram and 8mb vram. I would like to ask your help in removing 
the tearing artifacts. Thanks.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.797 / Virus Database: 541 - Release Date: 11/15/2004
 

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel