Re: [info-performer] how to determine how many pipes are on a Prism system

Date view Thread view Subject view Author view

From: John Kelso (kelso++at++nist.gov)
Date: 12/01/2005 15:00:02


Hi,

Thanks for chiming in Allan!

So it looks like I can maybe use the getinvent() call on our SGIs, and
Amir's code on our Prisms?

Amir's code basically looks at how many files named card* are in /dev/dri.

On our four pipe Prism:
>file /dev/dri/*
/dev/dri/card0: character special (226/0)
/dev/dri/card1: character special (226/1)
/dev/dri/card2: character special (226/2)
/dev/dri/card3: character special (226/3)
>ls -l /dev/dri/*
crw-rw-rw- 1 root root 226, 0 2005-05-24 11:08 /dev/dri/card0
crw-rw-rw- 1 root root 226, 1 2005-05-24 11:08 /dev/dri/card1
crw-rw-rw- 1 root root 226, 2 2005-11-11 03:26 /dev/dri/card2
crw-rw-rw- 1 root root 226, 3 2005-11-11 03:26 /dev/dri/card3

I notice my Linux laptop also has a /dev/dri directory:
> file /dev/dri/*
/dev/dri/card0: character special (226/0)
/dev/dri/card1: character special (226/1)
/dev/dri/card2: character special (226/2)
/dev/dri/card3: character special (226/3)
> ls -l /dev/dri/*
crw------- 1 root root 226, 0 Feb 23 2004 /dev/dri/card0
crw------- 1 root root 226, 1 Feb 23 2004 /dev/dri/card1
crw------- 1 root root 226, 2 Feb 23 2004 /dev/dri/card2
crw------- 1 root root 226, 3 Feb 23 2004 /dev/dri/card3

and our one pipe Prism has:
> file /dev/dri/*
/dev/dri/card0: character special (226/0)
/dev/dri/card1: character special (226/1)
> ls -l /dev/dri
crw-rw-rw- 1 root root 226, 0 2005-05-24 11:08 card0
crw-rw---- 1 root video 226, 1 2005-05-24 11:08 card1

So I'm confused. And doesn't each graphics pipe have two video outs?

Any advice??

Thanks,

-John

On Thu, 1 Dec 2005, Allan Schaffer wrote:

> John Kelso wrote:
> > Thanks for your speedy response.
> >
> > Will this class only be implemented on the Prism, or on all platforms?
> >
> > That said, do you have some #ifdefs you'd recommend?
> >
> > I've stumbled across __ia64__, __linux__ and WIN32. Is there something
> > like __irix__ I can use, or do I have to do some sort of test like:
>
> For IRIX we typically use #ifdef __mips__
> (don't know offhand where this comes from)
>
> FYI, about how many pipes .. there's also an X11 macro to get the screen
> count:
> #include <X11/Xlib.h>
> screens = ScreenCount(display);
>
> Sometimes screen count is what you "really" want, other times the
> physical pipe count is what you "really" want. It depends on whether
> your system is configured to run the performer app..
>
> (a) on one X server, with multiple screens
> ie on screens :0.0, :0.1, :0.2, :0.3 ...
>
> or
>
> (b) across multiple X servers (aka multiple X displays),
> with 1 or more screens each
> ie on screens :0.0, :0.1, :1.0, :1.1 ...
>
> The ScreenCount macro will provide the number of X screens for _this_ X
> display. (Most helpful for case (a))
>
> The code Amir posted will provide you with a count of the number of
> pipes physically present in the system. (Most helpful for case (b))
>
> Allan
>
>


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Dec 01 2005 - 15:00:19 PST