[Mesa-dev] [PATCH] amd/common: fix ASICREV_IS_POLARIS11_M for Polaris12
Alex Deucher
alexdeucher at gmail.com
Tue Feb 28 20:17:31 UTC 2017
On Tue, Feb 28, 2017 at 3:09 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> Cc: 17.0 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> src/amd/common/amdgpu_id.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/common/amdgpu_id.h b/src/amd/common/amdgpu_id.h
> index 1683a5a..1ecae1a 100644
> --- a/src/amd/common/amdgpu_id.h
> +++ b/src/amd/common/amdgpu_id.h
> @@ -150,21 +150,21 @@ enum {
>
> #define ASICREV_IS_ICELAND_M(eChipRev) \
> (eChipRev < VI_TONGA_P_A0)
> #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_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)
> + (eChipRev >= VI_POLARIS11_M_A0 && eChipRev < VI_POLARIS12_V_A0)
> #define ASICREV_IS_POLARIS12_V(eChipRev)\
> (eChipRev >= VI_POLARIS12_V_A0)
>
> /* CZ specific rev IDs */
> enum {
> CARRIZO_A0 = 0x01,
> STONEY_A0 = 0x61,
> CZ_UNKNOWN = 0xFF
> };
>
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list