From: Vasily Khoruzhick Date: Mon, 8 Apr 2019 03:56:24 +0000 (-0700) Subject: lima: enable sin and cos lowering for GP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b46399e2f3793f88ce739eed9e2a6bfba0cbd46;p=mesa.git lima: enable sin and cos lowering for GP GP doesn't support sin/cos natively, so we have to lower them. Reviewed-by: Qiang Yu Tested-by: Qiang Yu Signed-off-by: Vasily Khoruzhick --- diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c index e1cea2463a6..e56912d8e21 100644 --- a/src/gallium/drivers/lima/lima_program.c +++ b/src/gallium/drivers/lima/lima_program.c @@ -91,6 +91,7 @@ lima_program_optimize_vs_nir(struct nir_shader *s) NIR_PASS_V(s, lima_nir_lower_uniform_to_scalar); NIR_PASS_V(s, nir_lower_io_to_scalar, nir_var_shader_in|nir_var_shader_out); + NIR_PASS_V(s, nir_lower_sincos); do { progress = false;