[2/7] ac/registers: use better names for disambiguated definitions

Submitted by Marek Olšák on June 13, 2019, 12:40 a.m.

Details

Message ID 20190613004041.32721-2-maraeo@gmail.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Marek Olšák June 13, 2019, 12:40 a.m.
From: Marek Olšák <marek.olsak@amd.com>

---
 src/amd/registers/makeregheader.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/amd/registers/makeregheader.py b/src/amd/registers/makeregheader.py
index 859a59b9f3e..1d73cb47bdf 100644
--- a/src/amd/registers/makeregheader.py
+++ b/src/amd/registers/makeregheader.py
@@ -37,24 +37,24 @@  import re
 import sys
 
 from regdb import Object, RegisterDatabase, deduplicate_enums, deduplicate_register_types
 
 
 ######### BEGIN HARDCODED CONFIGURATION
 
 # Chips are sorted chronologically
 CHIPS = [
     Object(name='gfx6', disambiguation='GFX6'),
-    Object(name='gfx7', disambiguation='GFX6'),
-    Object(name='gfx8', disambiguation='GFX6'),
-    Object(name='fiji', disambiguation='GFX6'),
-    Object(name='stoney', disambiguation='GFX6'),
+    Object(name='gfx7', disambiguation='GFX7'),
+    Object(name='gfx8', disambiguation='GFX8'),
+    Object(name='fiji', disambiguation='GFX8'),
+    Object(name='stoney', disambiguation='GFX8'),
     Object(name='gfx9', disambiguation='GFX9'),
 ]
 
 ######### END HARDCODED CONFIGURATION
 
 def get_chip_index(chip):
     """
     Given a chip name, return its index in the global CHIPS list.
     """
     return next(idx for idx, obj in enumerate(CHIPS) if obj.name == chip)

Comments

Patches 1-2 are:

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>

On 6/13/19 2:40 AM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak@amd.com>
>
> ---
>   src/amd/registers/makeregheader.py | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/amd/registers/makeregheader.py b/src/amd/registers/makeregheader.py
> index 859a59b9f3e..1d73cb47bdf 100644
> --- a/src/amd/registers/makeregheader.py
> +++ b/src/amd/registers/makeregheader.py
> @@ -37,24 +37,24 @@ import re
>   import sys
>   
>   from regdb import Object, RegisterDatabase, deduplicate_enums, deduplicate_register_types
>   
>   
>   ######### BEGIN HARDCODED CONFIGURATION
>   
>   # Chips are sorted chronologically
>   CHIPS = [
>       Object(name='gfx6', disambiguation='GFX6'),
> -    Object(name='gfx7', disambiguation='GFX6'),
> -    Object(name='gfx8', disambiguation='GFX6'),
> -    Object(name='fiji', disambiguation='GFX6'),
> -    Object(name='stoney', disambiguation='GFX6'),
> +    Object(name='gfx7', disambiguation='GFX7'),
> +    Object(name='gfx8', disambiguation='GFX8'),
> +    Object(name='fiji', disambiguation='GFX8'),
> +    Object(name='stoney', disambiguation='GFX8'),
>       Object(name='gfx9', disambiguation='GFX9'),
>   ]
>   
>   ######### END HARDCODED CONFIGURATION
>   
>   def get_chip_index(chip):
>       """
>       Given a chip name, return its index in the global CHIPS list.
>       """
>       return next(idx for idx, obj in enumerate(CHIPS) if obj.name == chip)