diff options
author | Samuel Pitoiset <[email protected]> | 2019-03-22 09:24:57 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-03-22 19:41:46 +0100 |
commit | 23d30f4099fac0e1fcbd7adf315a186f553e48d2 (patch) | |
tree | c96617c3df226f62b78eefbce74d1b9c1277be3c /src/amd/vulkan | |
parent | 6ae5797243a6ace4d65088620291884be2a09fa6 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index eecbc6ae759..19a807df199 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -305,6 +305,7 @@ radv_shader_compile_to_nir(struct radv_device *device, NIR_PASS_V(nir, nir_lower_system_values); NIR_PASS_V(nir, nir_lower_clip_cull_distance_arrays); + NIR_PASS_V(nir, nir_lower_frexp); } /* Vulkan uses the separate-shader linking model */ |