diff options
author | Samuel Pitoiset <[email protected]> | 2018-03-22 16:41:42 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-03-28 20:15:14 +0200 |
commit | 4d2c46dda38d2360f4f32e51b76645977b05e9ed (patch) | |
tree | fd11a58ee34457bc11782d1b689a34fd4237a36c /src/amd/vulkan/radv_device.c | |
parent | 3e6326deb978a26169481df15f5ba99c2754fa50 (diff) |
radv: add support for Vega12
Based on RadeonSI. Untested.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 9c82fd059f8..81f31f6c6d3 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; |