diff options
author | Samuel Pitoiset <[email protected]> | 2018-05-17 09:56:47 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-05-17 13:48:21 +0200 |
commit | 1e86eaf7d83e73b0287722a868718eb18675ce08 (patch) | |
tree | 14937635d094ec84d1898faf80e1b755bcc0d25c /src/amd/vulkan/radv_shader.c | |
parent | f71714022b2cd26bb1892e6a7f3d7308515f210e (diff) |
radv: remove radv_device::llvm_supports_spill
It's always true.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.c')
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index dfe63d60d4c..1968758a391 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -376,9 +376,6 @@ radv_fill_shader_variant(struct radv_device *device, struct radv_shader_info *info = &variant->info.info; unsigned vgpr_comp_cnt = 0; - if (scratch_enabled && !device->llvm_supports_spill) - radv_finishme("shader scratch support only available with LLVM 4.0"); - variant->code_size = binary->code_size; variant->rsrc2 = S_00B12C_USER_SGPR(variant->info.num_user_sgprs) | S_00B12C_SCRATCH_EN(scratch_enabled); @@ -554,7 +551,7 @@ radv_shader_variant_create(struct radv_device *device, options.key = *key; options.unsafe_math = !!(device->instance->debug_flags & RADV_DEBUG_UNSAFE_MATH); - options.supports_spill = device->llvm_supports_spill; + options.supports_spill = true; return shader_variant_create(device, module, shaders, shader_count, shaders[shader_count - 1]->info.stage, &options, false, code_out, code_size_out); |