Skip to contentSkip to conversation

"assumed" graphic card memory

DISCUSSION Molle Bestefich 2 participants 2 messages Jul 13, 2006 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 1 line

I'd say it needs a framebuffer device which I do not have

Use the PCI variant ;-).

Quoted 1 line

Also, the PCI path varies a lot

Obviously. The correct PCI path would need to be found first.

(I used "lspci|grep VGA", hehe.)

Quoted 2 lines

None of this works at all on non-Linux systems, for that matter. (Wine does run on non-Linux systems, in case you didn't realize that.)

Default to 64MB on those systems.

Quoted 3 lines

This reports the wrong values for me in
one machine with a 32M video card:
134217728

Ok. Guess it's rubbish then, too bad.
Oh well.

Quoted 2 lines

It might be possible to guesstimate the available memory:
http://delphi3d.net/articles/viewarticle.php?article=texman.htm

Promising!

But perhaps an easier approach would be to fix every Linux driver to report the correct number in sysfs. I'm pretty sure each driver knows how much RAM is on the card already, so it should be trivial..

#4 lore raw

May be using we can use the internals of lspci and pciutils. So that we can calculate the VGA memory on the fly.

Quoted 33 lines · Molle Bestefich
Quoted 1 line

I'd say it needs a framebuffer device which I do not have

Use the PCI variant ;-).

Quoted 1 line

Also, the PCI path varies a lot

Obviously. The correct PCI path would need to be found first.

(I used "lspci|grep VGA", hehe.)

Quoted 2 lines

None of this works at all on non-Linux systems, for that matter. (Wine does run on non-Linux systems, in case you didn't realize that.)

Default to 64MB on those systems.

Quoted 3 lines

This reports the wrong values for me in
one machine with a 32M video card:
134217728

Ok. Guess it's rubbish then, too bad.
Oh well.

Quoted 2 lines

It might be possible to guesstimate the available memory:
http://delphi3d.net/articles/viewarticle.php?article=texman.htm

Promising!

But perhaps an easier approach would be to fix every Linux driver to report the correct number in sysfs. I'm pretty sure each driver knows how much RAM is on the card already, so it should be trivial..