r600/sfn: Add algebraic lowering for fsin and fcos
* fsin and fcos require normalization of the input * bitfield_insert requires an additional shift of the insert value v2: drop bitfield_insert lowering code, it is already avaibable as compiler option (Rhys Perry) Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9452>
This commit is contained in:
@@ -878,6 +878,7 @@ int r600_shader_from_nir(struct r600_context *rctx,
|
||||
NIR_PASS_V(sel->nir, nir_lower_idiv,
|
||||
sel->nir->info.stage == MESA_SHADER_COMPUTE ?
|
||||
nir_lower_idiv_precise : nir_lower_idiv_fast);
|
||||
NIR_PASS_V(sel->nir, r600_lower_alu);
|
||||
NIR_PASS_V(sel->nir, nir_lower_phis_to_scalar);
|
||||
|
||||
if (lower_64bit)
|
||||
|
Reference in New Issue
Block a user