[Mesa-dev] [PATCH 1/2] radeonsi: add Polaris12 support (v2)
Andreas Boll
andreas.boll.dev at gmail.com
Mon Dec 19 21:14:26 UTC 2016
2016-12-19 21:41 GMT+01:00 Alex Deucher <alexdeucher at gmail.com>:
> diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
> index 0b5c6dc..76a34fe 100644
> --- a/src/gallium/drivers/radeon/r600_pipe_common.c
> +++ b/src/gallium/drivers/radeon/r600_pipe_common.c
> @@ -755,6 +755,7 @@ static const char* r600_get_chip_name(struct r600_common_screen *rscreen)
> case CHIP_FIJI: return "AMD FIJI";
> case CHIP_POLARIS10: return "AMD POLARIS10";
> case CHIP_POLARIS11: return "AMD POLARIS11";
> + case CHIP_POLARIS12: return "AMD POLARIS12";
> case CHIP_STONEY: return "AMD STONEY";
> default: return "AMD unknown";
> }
> @@ -893,6 +894,11 @@ const char *r600_get_llvm_processor_name(enum radeon_family family)
> case CHIP_POLARIS10: return "polaris10";
> case CHIP_POLARIS11: return "polaris11";
> #endif
LLVM <= 3.8 needs the same fallback as CHIP_POLARIS11.
#if HAVE_LLVM <= 0x0308
needs to return "tonga"
Thanks,
Andreas
> +#if HAVE_LLVM <= 0x0309
> + case CHIP_POLARIS12: return "polaris11";
> +#else
> + case CHIP_POLARIS12: return "gfx803";
> +#endif
> default: return "";
> }
> }
More information about the mesa-dev
mailing list