Announcement

Collapse
No announcement yet.

Mesa 19.2 Punts AMD Register Descriptions Into JSON

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Veto
    replied
    Originally posted by [email protected] View Post
    JSON is nice, but it desperately needs some standard way to put some comments together with the data.
    You mean like this? : (Copied from the actual AMD register description)
    Code:
    + {"comment": "not on stoney", "name": "IMG_DATA_FORMAT_32_AS_8", "value": 61},
    Putting comments into the JSON format itself allows you to also parse the comments in a standardized way
    Last edited by Veto; 05 June 2019, 12:52 AM.

    Leave a comment:


  • dwagner
    replied
    "Descriptions" is a big word for what seems to be just short, abbreviated names assigned to registers. From a "description", I would rather expect some prose text describing what a register does - what you can only guess if all you have is a name.

    Leave a comment:


  • abott
    replied
    Comment your format in your documentation. Data doesn't need comments. This is great. Json is probably the best general use small data format there is.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Originally posted by [email protected] View Post

    I didn't check, but I guess it is used to generate headers at compile-time.

    JSON is nice, but it desperately needs some standard way to put some comments together with the data.
    There are plenty of formats that support comments, JSON has dropped support for them, because they did more harm than good. There are plenty of standardized formats, and you can pick any of them to better match your needs.

    Leave a comment:


  • skeevy420
    replied
    Originally posted by Hibbelharry View Post

    Not really, but who needs that anyway?
    People tired of setting all of that with command line switches, environment variables, and sudoedit.

    Leave a comment:


  • Hibbelharry
    replied
    Originally posted by Jedibeeftrix View Post
    Will this help with building gui config tools for radeon settings?
    i.e. enable disable freesync / hdr / oc'ing, etc.
    Not really, but who needs that anyway?

    Leave a comment:


  • nanonyme
    replied
    Originally posted by [email protected] View Post

    I didn't check, but I guess it is used to generate headers at compile-time.

    JSON is nice, but it desperately needs some standard way to put some comments together with the data.
    Like YAML?

    Leave a comment:


  • M@yeulC
    replied
    Originally posted by Jedibeeftrix View Post
    Will this help with building gui config tools for radeon settings?

    i.e. enable disable freesync / hdr / oc'ing, etc.
    I didn't check, but I guess it is used to generate headers at compile-time.

    JSON is nice, but it desperately needs some standard way to put some comments together with the data.

    Leave a comment:


  • Jedibeeftrix
    replied
    Will this help with building gui config tools for radeon settings?

    i.e. enable disable freesync / hdr / oc'ing, etc.

    Leave a comment:


  • phoronix
    started a topic Mesa 19.2 Punts AMD Register Descriptions Into JSON

    Mesa 19.2 Punts AMD Register Descriptions Into JSON

    Phoronix: Mesa 19.2 Punts AMD Register Descriptions Into JSON

    If you want an easy way to go through the AMD Radeon GPU register descriptions, they are now storing them in a JSON format within Mesa following more than ten thousand lines of code/headers being shifted around today...

    http://www.phoronix.com/scan.php?pag...Registers-JSON
Working...
X