projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e67e4e9
)
lima: enable sin and cos lowering for GP
author
Vasily Khoruzhick
<anarsoul@gmail.com>
Mon, 8 Apr 2019 03:56:24 +0000
(20:56 -0700)
committer
Erico Nunes
<nunes.erico@gmail.com>
Tue, 7 May 2019 15:25:21 +0000
(15:25 +0000)
GP doesn't support sin/cos natively, so we have to lower them.
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Tested-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_program.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/lima/lima_program.c
b/src/gallium/drivers/lima/lima_program.c
index e1cea2463a67ff0c06c8eb4c9aca33386754072f..e56912d8e218d7f3300ecee47ce0f79e5107066c 100644
(file)
--- 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;