radv/radeonsi/nir: lower 64bit flrp
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 12 Jan 2018 00:12:09 +0000 (11:12 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 13 Jan 2018 07:04:40 +0000 (18:04 +1100)
Fixes a bunch of arb_gpu_shader_fp64 piglit tests for example:

generated_tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-mix-double-double-double.shader_test

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c
src/gallium/drivers/radeonsi/si_get.c

index 6f622dd996805638243e2222d431a0de6a55443c..9819a522d7125e33368011ca985bb024e3a3eff8 100644 (file)
@@ -52,6 +52,7 @@ static const struct nir_shader_compiler_options nir_options = {
        .vertex_id_zero_based = true,
        .lower_scmp = true,
        .lower_flrp32 = true,
+       .lower_flrp64 = true,
        .lower_fsat = true,
        .lower_fdiv = true,
        .lower_sub = true,
index 9b5a03edafbb032b4b3058e56b4ee5769b2c3f49..caf6e9d19ff4fc01a6fb42c776947a3d33f9e7c0 100644 (file)
@@ -504,6 +504,7 @@ static const struct nir_shader_compiler_options nir_options = {
        .vertex_id_zero_based = true,
        .lower_scmp = true,
        .lower_flrp32 = true,
+       .lower_flrp64 = true,
        .lower_fsat = true,
        .lower_fdiv = true,
        .lower_sub = true,