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/freedreno/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/freedreno/vulkan')
-rw-r--r-- | src/freedreno/vulkan/tu_shader.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |