Mesa (master): nvfx: add SIN and COS in vertprog

Luca Barbieri lb at kemper.freedesktop.org
Mon Apr 12 21:44:16 UTC 2010


Module: Mesa
Branch: master
Commit: b385a3145247cf615000eb40a39c7206abac6b63
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b385a3145247cf615000eb40a39c7206abac6b63

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Tue Jan 19 17:26:20 2010 +0100

nvfx: add SIN and COS in vertprog

---

 src/gallium/drivers/nvfx/nvfx_vertprog.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nvfx/nvfx_vertprog.c b/src/gallium/drivers/nvfx/nvfx_vertprog.c
index ef47e01..71c76a6 100644
--- a/src/gallium/drivers/nvfx/nvfx_vertprog.c
+++ b/src/gallium/drivers/nvfx/nvfx_vertprog.c
@@ -479,6 +479,9 @@ nvfx_vertprog_parse_instruction(struct nvfx_context* nvfx, struct nvfx_vpc *vpc,
 	case TGSI_OPCODE_ARL:
 		arith(vpc, VEC, ARL, dst, mask, src[0], none, none);
 		break;
+	case TGSI_OPCODE_COS:
+		arith(vpc, SCA, COS, dst, mask, none, none, src[0]);
+		break;
 	case TGSI_OPCODE_DP3:
 		arith(vpc, VEC, DP3, dst, mask, src[0], src[1], none);
 		break;
@@ -556,6 +559,9 @@ nvfx_vertprog_parse_instruction(struct nvfx_context* nvfx, struct nvfx_vpc *vpc,
 	case TGSI_OPCODE_SGT:
 		arith(vpc, VEC, SGT, dst, mask, src[0], src[1], none);
 		break;
+	case TGSI_OPCODE_SIN:
+		arith(vpc, SCA, SIN, dst, mask, none, none, src[0]);
+		break;
 	case TGSI_OPCODE_SLE:
 		arith(vpc, VEC, SLE, dst, mask, src[0], src[1], none);
 		break;




More information about the mesa-commit mailing list