Board index FlightGear Development

Looking for people with ATI/AMD GPUs building from source

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

Re: Looking for people with ATI/AMD GPUs building from sourc

Postby bugman » Thu Aug 27, 2015 5:38 pm

Hooray wrote in Thu Aug 27, 2015 5:28 pm:In one case, it's just a glGetIntegerV() value, so should be supported by modern cards/drivers, you could try running the ATI snippet at: http://www.geeks3d.com/20100531/program ... in-opengl/


Ah, you'll have to differentiate between the proprietary vs. open source drivers here! The link above is for the proprietary drivers only. I'm not sure how it is done with the open source drivers, but I remember hearing that something was being developed in Mesa to be driver independent. Anyway, I guess the following approach is not of much use:

Code: Select all
[edward@localhost ~]$ lspci | grep ATI
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400 Series]
[edward@localhost ~]$ lspci -v -s 02:00.0
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] (prog-if 00 [VGA controller])
        Subsystem: Hightech Information System Ltd. Device 2327
        Flags: bus master, fast devsel, latency 0, IRQ 40
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at fbe20000 (64-bit, non-prefetchable) [size=128K]
        I/O ports at e000 [size=256]
        Expansion ROM at fbe00000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: radeon
        Kernel modules: radeon


Regards,

Edward
bugman
Moderator
 
Posts: 1808
Joined: Thu Mar 19, 2015 10:01 am
Version: next

Re: Looking for people with ATI/AMD GPUs building from sourc

Postby bugman » Thu Aug 27, 2015 5:43 pm

Maybe the GLX_MESA_query_renderer would be of use?

Regards,

Edward

Edit: This is where I heard it: Phoronix: GLX_MESA_query_renderer Extension Published and [Mesa-dev] [RFC] GLX_MESA_query_renderer.
bugman
Moderator
 
Posts: 1808
Joined: Thu Mar 19, 2015 10:01 am
Version: next

Re: Looking for people with ATI/AMD GPUs building from sourc

Postby Hooray » Thu Aug 27, 2015 6:46 pm

lspci and friends are obviously linux specific, so not of much use on Windows or even Mac OSX.
The query_renderer extension might work for some systems though.


Here's the kind of info that we can now trivially expose/access in a multi-platform fashion using 10 minutes of copy&paste and roughly 20 lines of C code mapped to property objects (this still being on a netbook without dedicated GPU):

http://wiki.flightgear.org/FlightGear_N ... tilization
Image

Code: Select all
    fgfs pid is:13477
    CPUs: 2(Intel Atom(TM) CPU N270   @ 1.60GHz)
    VRAM Tracking: Supported GPU found:INTEL OPEN SOURCE TECHNOLOGY CENTER
    SIGAR reported total ram:1024mb

    Active fgfs threads:2
    swap used:120400kb / free:1878444kb
    SIGAR reported process size:397692 kb
    Active fgfs threads:2
    swap used:120400kb / free:1878444kb
    SIGAR reported process size:399748 kb
    Active fgfs threads:2
    swap used:120400kb / free:1878444kb
    SIGAR reported process size:400772 kb
    Active fgfs threads:2
    swap used:120400kb / free:1878444kb
    SIGAR reported process size:425744 kb
    Active fgfs threads:2
    swap used:120684kb / free:1878160kb
    SIGAR reported process size:433444 kb
    Active fgfs threads:2
    swap used:121216kb / free:1877628kb
    SIGAR reported process size:437748 kb
    Active fgfs threads:2
    swap used:121572kb / free:1877272kb
    SIGAR reported process size:437748 kb
    Active fgfs threads:2

Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 6 guests