[Mesa-dev] [PATCH 2/7] ac/registers: use better names for disambiguated definitions

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Jun 13 07:06:59 UTC 2019


Patches 1-2 are:

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

On 6/13/19 2:40 AM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at 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)


More information about the mesa-dev mailing list