diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-08-12 23:11:15 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-08-19 22:34:11 +0000 |
commit | 6c5d9838655286e05e74419c6e54712799284c10 (patch) | |
tree | 0261c64e2015952088741e0aadd771f9c7aafc4d /src/amd | |
parent | 223b3174bd103d6a77309a4212516c837352a171 (diff) |
radv: Add Renoir support.
Took the freedom to enable dfsm even though I don't have benchmark
results yet, but it seems Raven-like.
Rest is from radeonsi.
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 8 | ||||
-rw-r--r-- | src/amd/vulkan/si_cmd_buffer.c | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 05d09bb08eb..7cd7d9da1d6 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -348,7 +348,8 @@ radv_physical_device_init(struct radv_physical_device *device, device->rbplus_allowed = device->rad_info.family == CHIP_STONEY || device->rad_info.family == CHIP_VEGA12 || device->rad_info.family == CHIP_RAVEN || - device->rad_info.family == CHIP_RAVEN2; + device->rad_info.family == CHIP_RAVEN2 || + device->rad_info.family == CHIP_RENOIR; } /* The mere presence of CLEAR_STATE in the IB causes random GPU hangs @@ -379,6 +380,7 @@ radv_physical_device_init(struct radv_physical_device *device, device->rad_info.me_fw_feature >= 41); device->has_dcc_constant_encode = device->rad_info.family == CHIP_RAVEN2 || + device->rad_info.family == CHIP_RENOIR || device->rad_info.chip_class >= GFX10; device->use_shader_ballot = device->instance->perftest_flags & RADV_PERFTEST_SHADER_BALLOT; @@ -1937,10 +1939,10 @@ VkResult radv_CreateDevice( device->pbb_allowed = device->physical_device->rad_info.chip_class >= GFX9 && !(device->instance->debug_flags & RADV_DEBUG_NOBINNING); - /* Disabled and not implemented for now. */ device->dfsm_allowed = device->pbb_allowed && (device->physical_device->rad_info.family == CHIP_RAVEN || - device->physical_device->rad_info.family == CHIP_RAVEN2); + device->physical_device->rad_info.family == CHIP_RAVEN2 || + device->physical_device->rad_info.family == CHIP_RENOIR); #ifdef ANDROID device->always_use_syncobj = device->physical_device->rad_info.has_syncobj_wait_for_submit; diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index 701b2398b50..e8911dc591f 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -436,6 +436,7 @@ si_emit_graphics(struct radv_physical_device *physical_device, break; case CHIP_RAVEN: case CHIP_RAVEN2: + case CHIP_RENOIR: case CHIP_NAVI10: case CHIP_NAVI12: pc_lines = 1024; |