diff options
author | Samuel Pitoiset <[email protected]> | 2019-08-21 08:38:24 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-08-21 15:14:29 +0200 |
commit | e73d863a66caac796ed5fb543a77f0b892df8573 (patch) | |
tree | f732788fa3e46332b2598245c9e72e951380a59a /src/amd/vulkan/radv_device.c | |
parent | e71fc7f2387dc14d08b7b310c41d83aa7a84c3b4 (diff) |
radv: allow to enable VK_AMD_shader_ballot only on GFX8+
Scans aren't implemented on SI/CIK.
Cc: 19.2 <[email protected]>
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index cc45ac95c08..4aafe6e78aa 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -383,7 +383,8 @@ radv_physical_device_init(struct radv_physical_device *device, device->rad_info.family == CHIP_RENOIR || device->rad_info.chip_class >= GFX10; - device->use_shader_ballot = device->instance->perftest_flags & RADV_PERFTEST_SHADER_BALLOT; + device->use_shader_ballot = device->rad_info.chip_class >= GFX8 && + device->instance->perftest_flags & RADV_PERFTEST_SHADER_BALLOT; /* Determine the number of threads per wave for all stages. */ device->cs_wave_size = 64; |