From 23d30f4099fac0e1fcbd7adf315a186f553e48d2 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 22 Mar 2019 09:24:57 +0100 Subject: spirv,nir: lower frexp_exp/frexp_sig inside a new NIR pass This lowering isn't needed for RADV because AMDGCN has two instructions. It will be disabled for RADV in an upcoming series. While we are at it, factorize a little bit. Signed-off-by: Samuel Pitoiset Reviewed-by: Jason Ekstrand --- src/freedreno/vulkan/tu_shader.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/freedreno/vulkan') diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c index 2a70136ba7f..c2fdff9953e 100644 --- a/src/freedreno/vulkan/tu_shader.c +++ b/src/freedreno/vulkan/tu_shader.c @@ -173,6 +173,7 @@ tu_shader_create(struct tu_device *dev, ir3_glsl_type_size); NIR_PASS_V(nir, nir_lower_system_values); + NIR_PASS_V(nir, nir_lower_frexp); NIR_PASS_V(nir, nir_lower_io, nir_var_all, ir3_glsl_type_size, 0); nir_shader_gather_info(nir, entry_point->impl); -- cgit v1.2.3