[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help getting hw-accel OpenGL on Pismo



Michel Dänzer wrote:
On Tue, 2003-09-09 at 16:55, John M. Gabriele wrote:
On Tue, 2003-09-09 at 10:40, John M. Gabriele wrote:

I'm trying to get hardware-accelerated OpenGL working. The Powerbook
comes with an ATI Rage 128 Mobility M3, 66 MHz AGP 2x (rev. 02) bus
and the card has 8 MB SDRAM. Standard 1024x768 display.

I've got some info up about the iBook (with same graphics setup) on
http://www.flamingspork.com/linux/ibook/


Thanks for the reply. Your site mentions:
|
| The trick is: 16 bit color only! Yes, that will get DRM
| going on an 8MB Rage128 Mobility.

I'll try that when I get home,

Yup. It works for me in 16-bit. At least, I think it works...
glxgears, nearly full-screen gives me 69 frames / second, and
now it doesn't properly clean up the desktop after itself.

glxinfo tells me:

  direct rendering: Yes

  OpenGL renderer string: Mesa DRI Rage128 20010405 M3 AGP 1x
  OpenGL version string: 1.2 Mesa 3.4.2

That's weird -- should be AGP 2x, no?
(hmm... also weird: still that old 3.4.2 (!?)) and /var/log/XFree86.0.log shows:

  (II) PCI: 00:10:0: chip 1002,4c46 card 1002,4c46 rev 02 class 03,00,00 hdr 00

  (--) PCI:*(0:16:0) ATI Rage 128 Mobility LF rev 2, Mem @ 0xa4000000/26,
    0xa0000000/14, I/O @ 0x0400/8, BIOS @ 0xa0020000/17

(Since it's referring to the ATI as on the PCI bus, I'm now guessing that
the AGP port must somehow or other be considered on the PCI bus... Also note
that the value 00:10:0 is in hex and 0:16:0 is in decimal.)

  (II) R128(0): PCI bus 0 card 16 func 0
  (**) R128(0): Depth 16, (--) framebuffer bpp 16
  (II) R128(0): Pixel depth = 16 bits stored in 2 bytes (16 bpp pixmaps)
  (==) R128(0): Default visual is TrueColor
  (**) R128(0): Option "UseFBDev" "true"
  (==) R128(0): RGB weight 565
  (II) R128(0): Using 6 bits per RGB (8 bit DAC)
  (**) R128(0): Using framebuffer device

  (--) R128(0): Chipset: "ATI Rage 128 Mobility LF (AGP)" (ChipID = 0x4c46)

then a bunch of `drm' and `agp' messages starting with

  (II) R128(0): [drm] created "r128" driver at busid "PCI:0:16:0"

then also

  (II) R128(0): Direct rendering enabled

Funny thing is, my desktop and jpegs don't seem to look any different to me. (?)
Maybe it's me, or maybe this old Pismo LCD, dunno. :)

Finally, in a previous message, I listed as part of my XFree86.0.log:
  (WW) Open APM failed (/dev/apm_bios) (No such device)
but that was only because I hadn't turned on apm emulation in my kernel
config (CONFIG_PMAC_APM_EMU).

Also, in another clipping, I included:
  (II) R128: Driver for ATI Rage 128 chipsets: ATI Rage 128 RE (PCI),
but failed to notice the comma at the end -- it listed other ATI Rage
128's below that line, and mine (on the AGP port) was listed among them.


but...

| It's a bitch, OSX can do
| it in Millions of Colors, so why can't X?

That's a very good question. Does anyone here have an
answer?


Because the DRI uses shared front, back, depth and stencil buffers. This
may change in the future, but hardly anytime soon.
>

8 MB should be plenty for a 32 bpp 1024x768 double-buffered
display (1024 x 768 x 32 / 8 / 1024 / 1024 = 3 MB, for 2
buffers (front and back) that's 6 MB required).


You forgot the depth and stencil buffers, which together also take up 4
bytes per pixel.


Thanks.



Reply to: