diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-01-28 23:51:19 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-01-30 02:07:12 +0100 |
commit | 29c1f67e9f166da4393493d213ee06498aecac51 (patch) | |
tree | 40cd0d0c313c3a8eca671bea0671b2aacfe9919a /src/amd/vulkan/radv_pipeline.c | |
parent | d115b67712d6db1eff9d3a4bb57a585c0158be74 (diff) |
radv/ac: Add compiler support for spilling.
Based on code written by Dave Airlie.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 360b5196551..4d88ed77f93 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -424,7 +424,8 @@ static struct radv_shader_variant *radv_shader_variant_create(struct radv_device options.unsafe_math = !!(device->debug_flags & RADV_DEBUG_UNSAFE_MATH); options.family = chip_family; options.chip_class = device->physical_device->rad_info.chip_class; - tm = ac_create_target_machine(chip_family); + options.supports_spill = false; + tm = ac_create_target_machine(chip_family, false); ac_compile_nir_shader(tm, &binary, &variant->config, &variant->info, shader, &options, dump); LLVMDisposeTargetMachine(tm); |