radv: Add VEGA20 support.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 3 Sep 2018 00:19:25 +0000 (02:19 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 3 Sep 2018 07:24:30 +0000 (09:24 +0200)
Just mirror the radeonsi bits. Since this is just adding the extra
switch entries for new HW I think this should be fine for stable.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/si_cmd_buffer.c

index 13477231a4f2a8433c73601daea4fe58eb9c8c54..1741d5e90478c5e354ce9fd57c6cba8d35bca823 100644 (file)
@@ -2539,6 +2539,7 @@ radv_pipeline_generate_binning_state(struct radeon_cmdbuf *cs,
        switch (pipeline->device->physical_device->rad_info.family) {
        case CHIP_VEGA10:
        case CHIP_VEGA12:
+       case CHIP_VEGA20:
                context_states_per_bin = 1;
                persistent_states_per_bin = 1;
                fpovs_per_batch = 63;
index 2cfa7f4c2c386f376ac633b783c18b41467e4cd9..435878c3722594d75aad55ceb22f85c8020e213c 100644 (file)
@@ -340,6 +340,7 @@ si_emit_config(struct radv_physical_device *physical_device,
                switch (physical_device->rad_info.family) {
                case CHIP_VEGA10:
                case CHIP_VEGA12:
+               case CHIP_VEGA20:
                        pc_lines = 4096;
                        break;
                case CHIP_RAVEN: