diff options
author | Samuel Pitoiset <[email protected]> | 2019-08-01 10:43:41 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-08-02 09:37:34 +0200 |
commit | 953bbacc23bbf8b107a49187abc88cc2f4b1be43 (patch) | |
tree | c517755ef306750478091b30bccd1f469a5eb997 /src/amd/vulkan/radv_device.c | |
parent | 18c2e09dc747bb4290e9c37bab1f8e039c6c8c7e (diff) |
radv/gfx10: add Wave32 support for fragment shaders
It can be enabled with RADV_PERFTEST=pswave32.
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 29be192443a..b66b15edf73 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -385,10 +385,15 @@ radv_physical_device_init(struct radv_physical_device *device, /* Determine the number of threads per wave for all stages. */ device->cs_wave_size = 64; + device->ps_wave_size = 64; if (device->rad_info.chip_class >= GFX10) { if (device->instance->perftest_flags & RADV_PERFTEST_CS_WAVE_32) device->cs_wave_size = 32; + + /* For pixel shaders, wave64 is recommanded. */ + if (device->instance->perftest_flags & RADV_PERFTEST_PS_WAVE_32) + device->ps_wave_size = 32; } radv_physical_device_init_mem_types(device); @@ -503,6 +508,7 @@ static const struct debug_control radv_perftest_options[] = { {"shader_ballot", RADV_PERFTEST_SHADER_BALLOT}, {"tccompatcmask", RADV_PERFTEST_TC_COMPAT_CMASK}, {"cswave32", RADV_PERFTEST_CS_WAVE_32}, + {"pswave32", RADV_PERFTEST_PS_WAVE_32}, {NULL, 0} }; |