diff options
author | Dave Airlie <[email protected]> | 2017-07-06 03:06:01 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-07-06 23:07:49 +0100 |
commit | 09d7c7be4f1750a24670f8e7f9c555d88e47708f (patch) | |
tree | 24979b664378be519fcf42407a9b0d87cc5bddf4 /src/amd/vulkan/radv_pipeline.c | |
parent | d97275e42c0750fa74ce17de4f985c73c54a1bf4 (diff) |
radv: enable sisched toggle in perftest flags.
RADV_PERFTEST=sisched
to enable it.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 71a5cce4e9c..90cd716047a 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -467,6 +467,8 @@ static struct radv_shader_variant *radv_shader_variant_create(struct radv_device options.supports_spill = device->llvm_supports_spill; if (options.supports_spill) tm_options |= AC_TM_SUPPORTS_SPILL; + if (device->instance->perftest_flags & RADV_PERFTEST_SISCHED) + tm_options |= AC_TM_SISCHED; tm = ac_create_target_machine(chip_family, tm_options); ac_compile_nir_shader(tm, &binary, &variant->config, &variant->info, shader, &options, dump); @@ -508,6 +510,8 @@ radv_pipeline_create_gs_copy_shader(struct radv_pipeline *pipeline, options.chip_class = pipeline->device->physical_device->rad_info.chip_class; if (options.supports_spill) tm_options |= AC_TM_SUPPORTS_SPILL; + if (pipeline->device->instance->perftest_flags & RADV_PERFTEST_SISCHED) + tm_options |= AC_TM_SISCHED; tm = ac_create_target_machine(chip_family, tm_options); ac_create_gs_copy_shader(tm, nir, &binary, &variant->config, &variant->info, &options, dump_shader); LLVMDisposeTargetMachine(tm); |