[Mesa-dev] [PATCH 1/5] winsys/amdgpu: addrlib - add Polaris support

Michel Dänzer michel at daenzer.net
Thu Mar 24 03:45:22 UTC 2016


On 24.03.2016 03:43, Alex Deucher wrote:
> 
> diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_id.h b/src/gallium/winsys/amdgpu/drm/amdgpu_id.h
> index 90fe0cd..b9e20b8 100644
> --- a/src/gallium/winsys/amdgpu/drm/amdgpu_id.h
> +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_id.h
> @@ -138,6 +138,10 @@ enum {
>  
>  	VI_FIJI_P_A0      = 60,
>  
> +        VI_POLARIS10_P_A0 = 80,
> +
> +        VI_POLARIS11_M_A0    = 90,
> +
>  	VI_UNKNOWN        = 0xFF
>  };
>  
> @@ -147,7 +151,11 @@ enum {
>  #define ASICREV_IS_TONGA_P(eChipRev)	\
>  	((eChipRev >= VI_TONGA_P_A0) && (eChipRev < VI_FIJI_P_A0))
>  #define ASICREV_IS_FIJI_P(eChipRev)	\
> -	(eChipRev >= VI_FIJI_P_A0)
> +        ((eChipRev >= VI_FIJI_P_A0)  && (eChipRev < VI_POLARIS10_P_A0))
> +#define ASICREV_IS_POLARIS10_P(eChipRev)\
> +        ((eChipRev >= VI_POLARIS10_P_A0) && (eChipRev < VI_POLARIS11_M_A0))
> +#define ASICREV_IS_POLARIS11_M(eChipRev)   \
> +        (eChipRev >= VI_POLARIS11_M_A0)
>  
>  /* CZ specific rev IDs */
>  enum {
> 

Indentation looks wrong in this file (spaces instead of tabs). Please
fix that before pushing.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list