aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-01-23 15:52:01 -0500
committerMarge Bot <[email protected]>2020-03-17 20:47:48 +0000
commit56cc10bd27b24d513de88bf7fa94a6c8f43e348f (patch)
tree3c3effae8af6a1424a4dbea85d567f7341ad4ce4 /src/gallium
parente4959add2f44517b2227521af5aaf2919aaa6c3b (diff)
ac: unify denorm setting enforcement
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected] Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4196>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader_llvm.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_llvm.c b/src/gallium/drivers/radeonsi/si_shader_llvm.c
index 12a6d846c35..dca604afe40 100644
--- a/src/gallium/drivers/radeonsi/si_shader_llvm.c
+++ b/src/gallium/drivers/radeonsi/si_shader_llvm.c
@@ -130,24 +130,7 @@ bool si_compile_llvm(struct si_screen *sscreen,
bool ok = ac_rtld_read_config(&rtld, conf);
ac_rtld_close(&rtld);
- if (!ok)
- return false;
-
- /* Enable 64-bit and 16-bit denormals, because there is no performance
- * cost.
- *
- * If denormals are enabled, all floating-point output modifiers are
- * ignored.
- *
- * Don't enable denormals for 32-bit floats, because:
- * - Floating-point output modifiers would be ignored by the hw.
- * - Some opcodes don't support denormals, such as v_mad_f32. We would
- * have to stop using those.
- * - GFX6 & GFX7 would be very slow.
- */
- conf->float_mode |= V_00B028_FP_64_DENORMS;
-
- return true;
+ return ok;
}
void si_llvm_context_init(struct si_shader_context *ctx,