[Mesa-dev] [PATCH 1/2] radv: add support for Vega12

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Thu Mar 22 23:52:02 UTC 2018


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

for the series.

On Thu, Mar 22, 2018 at 4:41 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> Based on RadeonSI. Untested.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_device.c   | 5 ++++-
>  src/amd/vulkan/radv_pipeline.c | 1 +
>  src/amd/vulkan/si_cmd_buffer.c | 1 +
>  3 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
> index 36ba0c3833..e9122072a8 100644
> --- a/src/amd/vulkan/radv_device.c
> +++ b/src/amd/vulkan/radv_device.c
> @@ -101,6 +101,7 @@ radv_get_device_name(enum radeon_family family, char *name, size_t name_len)
>         case CHIP_POLARIS12: chip_string = "AMD RADV POLARIS12"; break;
>         case CHIP_STONEY: chip_string = "AMD RADV STONEY"; break;
>         case CHIP_VEGA10: chip_string = "AMD RADV VEGA"; break;
> +       case CHIP_VEGA12: chip_string = "AMD RADV VEGA12"; break;
>         case CHIP_RAVEN: chip_string = "AMD RADV RAVEN"; break;
>         default: chip_string = "AMD RADV unknown"; break;
>         }
> @@ -290,7 +291,8 @@ radv_physical_device_init(struct radv_physical_device *device,
>         if (device->rad_info.family == CHIP_STONEY ||
>             device->rad_info.chip_class >= GFX9) {
>                 device->has_rbplus = true;
> -               device->rbplus_allowed = device->rad_info.family == CHIP_STONEY;
> +               device->rbplus_allowed = device->rad_info.family == CHIP_STONEY ||
> +                                        device->rad_info.family == CHIP_VEGA12;
>         }
>
>         /* The mere presense of CLEAR_STATE in the IB causes random GPU hangs
> @@ -1174,6 +1176,7 @@ radv_device_init_gs_info(struct radv_device *device)
>         case CHIP_POLARIS11:
>         case CHIP_POLARIS12:
>         case CHIP_VEGA10:
> +       case CHIP_VEGA12:
>         case CHIP_RAVEN:
>                 device->gs_table_depth = 32;
>                 return;
> diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
> index dd5baec117..af1ea395d3 100644
> --- a/src/amd/vulkan/radv_pipeline.c
> +++ b/src/amd/vulkan/radv_pipeline.c
> @@ -2155,6 +2155,7 @@ radv_pipeline_generate_binning_state(struct radeon_winsys_cs *cs,
>
>         switch (pipeline->device->physical_device->rad_info.family) {
>         case CHIP_VEGA10:
> +       case CHIP_VEGA12:
>                 context_states_per_bin = 1;
>                 persistent_states_per_bin = 1;
>                 fpovs_per_batch = 63;
> diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c
> index 06e8442100..0970eff103 100644
> --- a/src/amd/vulkan/si_cmd_buffer.c
> +++ b/src/amd/vulkan/si_cmd_buffer.c
> @@ -509,6 +509,7 @@ si_emit_config(struct radv_physical_device *physical_device,
>
>                 switch (physical_device->rad_info.family) {
>                 case CHIP_VEGA10:
> +               case CHIP_VEGA12:
>                         pc_lines = 4096;
>                         break;
>                 case CHIP_RAVEN:
> --
> 2.16.2
>
> _______________________________________________
> 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