aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Khoruzhick <[email protected]>2019-04-07 20:56:24 -0700
committerErico Nunes <[email protected]>2019-05-07 15:25:21 +0000
commit6b46399e2f3793f88ce739eed9e2a6bfba0cbd46 (patch)
tree961724c9f2a5c180f42378b968d6189a7cc725e1
parente67e4e90b2cac998d6a6ad15735499eddb4fbe5d (diff)
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 <[email protected]> Tested-by: Qiang Yu <[email protected]> Signed-off-by: Vasily Khoruzhick <[email protected]>
-rw-r--r--src/gallium/drivers/lima/lima_program.c1
1 files changed, 1 insertions, 0 deletions
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;