From 6b46399e2f3793f88ce739eed9e2a6bfba0cbd46 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sun, 7 Apr 2019 20:56:24 -0700 Subject: [PATCH] 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 --- src/gallium/drivers/lima/lima_program.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2